Answers for "animate on scroll javascript"

6

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>
Posted by: Guest on May-04-2020
-1

animate on scroll

<!---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>
Posted by: Guest on April-11-2021
0

aos library slow animation angular

$ npm install aos --save
//In angular.json
styles: [... "node_modules/<your-site>/aos/dist/aos.css"]
//In component.ts
import * as AOS from 'aos';

ngOnInit() {
    AOS.init();
 }

//In component.html
<div data-aos="fade-left"></div>
Posted by: Guest on November-03-2020

Browse Popular Code Answers by Language