animate-css / animate.css

🍿 A cross-browser library of CSS animations. As easy to use as an easy thing.
https://animate.style/
Other
80.3k stars 16.23k forks source link

Add triggers utility classes on interaction events. #1627

Closed AlizerUncaged closed 1 year ago

AlizerUncaged commented 1 year ago

Is your feature request related to a problem? Please describe.

I always had to use JS in order to make the animations work if the mouse hovers.

Describe the solution you'd like.

Maybe add a utility class that marks the animation to only work on specific events? Such as onclick, onmouseenter and so on.

Describe alternatives you've considered.

Currently I'm adding and removing classes via JS.

Additional Context

None.

eltonmesquita commented 1 year ago

Sorry, but besides a few cases, there's no way to achieve this with only CSS, js is always needed. Not only that, our animations aren't suited to short and quick interactions such as transitions.

I'm closing this as it won't be added to this library.