Question : restrict animation on scroll animation on scroll on scroll animation
Answered by : selfish-skylark-lpkde1t9ents
There are three ways to determine when the element is scrolled into view:
Use the Intersection Observer API
Measure the element's offset when the user scrolls
Use a third-party JavaScript library that implements #1 or #2
Source : https://coolcssanimation.com/how-to-trigger-a-css-animation-on-scroll/ | Last Update : Mon, 22 Aug 22