animate-css / animate.css

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

How to control the animation to start only when the element comes into view #1584

Closed weilun0510 closed 2 years ago

weilun0510 commented 2 years ago

How to control the animation to start only when the element comes into view

warengonzaga commented 2 years ago

You can do it by using JS, creating a function in JS that listens to an event if the element is visible, and then adding the animation classes to the element to animate it.

zhaochengxiang commented 2 years ago

wow.js can help you