scroll animation js 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: animate on scroll

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

Example 3: scroll js

window.scroll(x-coord, y-coord)
window.scroll(options)

Example 4: js scroll library

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

Example 5: aos css animation

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