npm install aos --save
// importing aos
import AOS from 'aos';
import 'aos/dist/aos.css';
//useEffect
useEffect(() => {
AOS.init();
}, [])
//example
//Here you can use any of the AOS animations
data-aos="fade-left"
//full docs
blog.devgenius.io/how-to-add-scrolling-animations-to-reactjs-by-using-aos-cefa020a1604