Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

react aos

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"
Comment

aos react

//import 
import AOS from "aos";
import "aos/dist/aos.css";

//useEffect
useEffect(() => {
    AOS.init();
    AOS.refresh();
  }, []);
//example 
<div data-aos="fade-up"></div>
Comment

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
Comment

PREVIOUS NEXT
Code Example
Javascript :: jquery set checkbox checked 
Javascript :: react native rotate image 
Javascript :: remove first select option jquery 
Javascript :: trigger button click jquery 
Javascript :: remove all html tags from string javascript 
Javascript :: javascript sort by numerical value 
Javascript :: javascript insert sibling after 
Javascript :: enzyme adapter react 17 
Javascript :: js get number of keys in object 
Javascript :: convert english number to bangla in javascript 
Javascript :: jquery show for 5 seconds 
Javascript :: append before jquery 
Javascript :: jquery min 
Javascript :: _redirects in netlify 
Javascript :: set width of jqgrid 
Javascript :: javascript sum array values by key 
Javascript :: html div scroll 
Javascript :: javascript anagram check 
Javascript :: angular input press enter 
Javascript :: js timer loop 
Javascript :: npm ERR! code EACCES 
Javascript :: javascript seconds to min and seconds 
Javascript :: regex email js 
Javascript :: cut text if too long javascript 
Javascript :: sockjs.min.js cdn 
Javascript :: js only first 50 letters 
Javascript :: javascript count occurrences of letter in string 
Javascript :: change favicon with javascript 
Javascript :: jquery get all title 
Javascript :: discord embed image with file discord js 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =