Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react aos animation

npm i aos — save //installation
//import 
import AOS from "aos";
import "aos/dist/aos.css";

//useEffect
useEffect(() => {
    AOS.init();
    AOS.refresh();
  }, []);

//example 
data-aos="fade-up"
Source by avimistry4800.medium.com #
 
PREVIOUS NEXT
Tagged: #react #aos #animation
ADD COMMENT
Topic
Name
2+1 =