aos css

77

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"
<div data-aos="fade-down"></div>
<div data-aos="flip-left"></div>

Comments

Submit
0 Comments