“AOS CSS” Réponses codées

AOS JS

CSS
<link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet">

JS
<script src="https://unpkg.com/[email protected]/dist/aos.js"></script>

INITIALIZE AOS:
<script>
  AOS.init();
</script>
Panzer

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

AOS CSS

/*Add styles in <head>: */

  <link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />

/*Add script right before closing </body> tag, and initialize AOS:*/
  <script src="https://unpkg.com/aos@next/dist/aos.js"></script>
  <script>
    AOS.init();
  </script>
Malario

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

AOS CSS

<div data-aos="flip-left"></div>
Excited Echidna

Réponses similaires à “AOS CSS”

Questions similaires à “AOS CSS”

Plus de réponses similaires à “AOS CSS” dans CSS

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code