xel
xel copied to clipboard
Can animation be disabled on elements?
In particular for <x-accordion>
although I'm wondering if there is a general property that can be used.
Thanks.
Currently this is not possible. In case of <x-accordion>
I can add --animation-duration
custom CSS property which could be set to 0s
to disable animation.
@jarek-foksa I'll give this a try if it's fine for you. I'm thinking adding an atrribute (animated or something along the line). If the attribute is set then we set animation duration to 0 on the component (at least it looks possible on x-accordion).
@phamduylong For now I would prefer to not add any new attributes to x-accordion
. If we add something like noanimate
or disableanimation
boolean attribute to it, then for the sake of consistency it would have to be added to all other animatable widgets.
Starting from version 0.25.0 you can call <x-accordion>.expand(false)
and <x-accordion>.collapse(false)
to expand/collapse the accordion without animations.