aos install code example
Example 1: aos js cdn
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: install aos angular 10
npm install aos --save
styles: [... "node_modules/aos/dist/aos.css"]
scripts: [... "node_modules/aos/dist/aos.js"]
import * as AOS from 'aos';
ngOnInit(){
AOS.init();
}
Example 3: aos css animation
<div data-aos="zoom-in-left"></div>
Example 4: aos animate
<link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet">