[FEATURE REQUEST] x-transition.height for dynamic element height #773
marcotas
started this conversation in
4. General
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.
-
Congratulations for this package! It's super awesome and very very very handy!
Is there a way to animate the height of an element? I tried some options but didn't work, also I didn't find on documentation.
I'd like to suggest 2 new features:
@enter="..."
@beforeEnter="..."
@afterEnter="..."
etc.This last one would give us much power to customize animations btw.
The last thing I also would like to suggest is to add a directive to use a custom animation object. For example:
And you could have this javascript function in a script tag or importing from a "plugin" or "package" to be used with alpinejs.
The benefits of this approach is that we could export that functionality globally from a package or even through all the app and reuse the same animation for all components.
What do you think? lmk if you think that would be awesome and I'll try to contribute with a PR for it. It would be a challenge for me, but It would be a good experience.
Beta Was this translation helpful? Give feedback.
All reactions