javascript scroll animation code example
Example 1: smooth scroll css
html {
scroll-behavior: smooth;
}
/* No support in IE, or Safari
You can use this JS polyfill for those */
http://iamdustan.com/smoothscroll/
Example 2: 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 3: scroll js
window.scroll(x-coord, y-coord)
window.scroll(options)
Example 4: aos animate
<script>
AOS.init();
</script>
Example 5: smooth scroll website
$(').foundation('_destroy');