Scroll-Triggered Animations » Using useInView()
Using useInView()
This one, useInView() is simpler then whileInView. It’s a simple state hook that tracks when an element is in the viewport. This also means that you can’t give it animations, you have to track its state and use a common animate animation. Ah, and you also need a useRef() attached to the element to track […]