-
Notifications
You must be signed in to change notification settings - Fork 989
Description
Description
Hey! Thanks for trying to make nuxt/ui even more awesome.
I've been struggled with adding NavigationMenu items animation on toggling collapsed of/off states.
I'd like to make it work smoothly and keep only icons with popovers in collapsed state and show the rest only when collapsed is off. out of the box its only toggled on/off without transitions.
I see no option to pass slot to wrap labels with vue Transition component or use Motion-vue and either css animations like data-[collaped=true]:animate.... not working well because whole inner content of nav is wrapped with "v-if" and switched on collapsed.
In some components data-[state] animations works well, but not in collapsed NavigationMenu. Or am I doing something wrong?
Only a way I see is to override whole item slot. But for now I've just get rid of NavigationMenu and made my own custom component with fancy transitions.
Please point me to right direction and suggest best practices, cuz I'd like to use most of components and make it work with smooth transitions/animations, but sometimes got stucked with limitations/lack of knowledge.
offtop: For example, wasted many hours trying to achieve smooth slide-down transition for table expanded rows. Ended up with expanded slot with UCollapsible plus exclusive inner state for it, changed with setTimeout(() => { ... }, 300), Ugly, hucky, but it works.