Ejemplo 1: animar en scroll github
<script src="https://unpkg.com/[email protected]/dist/aos.js"></script>
<script>
AOS.init();
</script>
Ejemplo 2: 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>
Ejemplo 3: instalar aos angular 10
//install
npm install aos --save
//inside the angular.json inside of 'build', look for the 'styles' and 'scripts'
//inside them add:
styles: [... "node_modules/aos/dist/aos.css"]
scripts: [... "node_modules/aos/dist/aos.js"]
//to add AOS for the entire project, at the top of app.component.ts add:
import * as AOS from 'aos';
ngOnInit(){
AOS.init();
}
Ejemplo 4: instalación animada de aos
//install
npm install aos --save
//initialize in react
import AOS from 'aos'
import 'aos/dist/aos.css';
AOS.init();
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)