Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

aos react

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
 
PREVIOUS NEXT
Tagged: #aos #react
ADD COMMENT
Topic
Name
9+2 =