aos animation library code example

Example 1: 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>

Example 2: aos animate

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

Example 3: aos

<div data-aos="fade-up"></div>

Example 4: aos animation

// 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

Tags:

Misc Example