useInView
Check if your component is in viewport using this simple hook!
⭐ ⭐ Check out a working demo here ⭐ ⭐
Install
$ yarn add use-in-view
Usage
import useInView from 'use-in-view'; const AnimatedComponent = const offset = 30; const ref inView = ; return <div = => Animate me! </div> ;;