react aos 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: 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 animate
<script src="https://unpkg.com/[email protected]/dist/aos.js"></script>