“Animation AOS” Réponses codées

Animation AOS

<link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/[email protected]/dist/aos.js"></script>
<script>
AOS.init({
	duration: 1200,
});
</script>
Fierce Fish

Animation 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"
@iinaamasum

Animation AOS

// In your terminal
yarn add aos@next or npm install --save aos@next

// In your JS file
import AOS from 'aos';
import 'aos/dist/aos.css';

AOS.init();

// then, you can add data-aos attributes in your html
Lioruby

Animation AOS

<div data-aos="zoom-in-right"></div>
Evil Elephant

Animation AOS

bower install aos --save
Obnoxious Ocelot

Animation AOS

yarn add aos
Obnoxious Ocelot

Réponses similaires à “Animation AOS”

Questions similaires à “Animation AOS”

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code