Closed SushiWaUmai closed 1 year ago
Not yet. And I'm not sure what the class syntax should look like with multiple animations. Do you have any idea about this?
I thought of applying multiple animation classes on one element. Is that not possible?
Hmmm, then each animation would have to know if there was an animation before and how long that lasted. I'm not sure if this is possible..
But we'll give it a try!
I actually thought of having multiple effects being applied at the same time, but I think chaining animations is also another missing feature.
Okay, got it. The easiest way to combine (or chain) animations would be nesting:
<div class="animate-spin">
<div class="animate-jump animate-infinite">
...
</div>
</div>
And of course you can always extend your tailwind.config.js
and define custom animations.
I honestly don't see any other way. Multiple animations with several parameters (sequential, simultaneous, with delay, and so on..) would increase the complexity a lot. And we try to keep this plugin as simple and understandable as possible.
Does this library offer the ability to combine several animations?