Absolute sidebar with transition popup, when leaving sidebar is immediatelly visible #921
Unanswered
Nikola-Milovic
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone, to better explain, I have a welcome popup that grays the background, when the popup is hidden it start leaving and slowly fading away, but the sidebar immediately is fully visible. This seems like weird behaviour but probably intended. So I am not sure how to approach this. This is it here happening
This is the code, it's a bit big but I'll try and condense it as much as possible.
First this is my layout that holds all of my other content
This part of the sidebar
if (props.isOpen) " translate-x-0 " else " -translate-x-full " + " md:translate-x-0 "
is a bit hacky. It makes the sidebar slide-in and out when on mobile, but forces it to be open on the desktop. Content/ children are the actual screensAnd this is a screen that is inside content that has the popup
And this is my popup
Basically, when it starts leaving, it slowly fades, but for some reason, the entire sidebar immediately becomes fully visible. Honestly, I might need to rework the sidebar to use transitions, as I had to hack it this way before knowing that transitions existed... This is written in Kotlin with KotlinJS and React, it should be readable.
Beta Was this translation helpful? Give feedback.
All reactions