aos animation angular
//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();
}$ npm install aos --save
//In angular.json
styles: [...,
"../<name-of-your-site>/node_modules/aos/dist/aos.css"]
//In component.ts
import * as AOS from 'aos';
ngOnInit() {
AOS.init();
}
//In component.html
<div data-aos="fade-left"></div>
Also in JavaScript:
- compare two arrays
- jquery dialog modal on modal
- uppercase string in js
- replace all occurrences of a string in javascript
- discord.js mute script
- how to validate from and to date using date.parse in javascript
- angular event emitter
- /runtime.d7bbc2cdb230ca3d1157.js
- jquery get parameter from url
- Material-ui wallet icon
- variables in js
- redirect react router stack overflow
- json token for .ini file
- jquery script cdn stackoverflow
- how to compare elements in an array
- what foreach method returns in javascript
- javascript add class
- encriptar exadecimal con cryptojs
- javascript check number against undefined
- javascript boolean
- 2gis nuxt
- js check if undefined
- action checkbox selected vue js
- cordova android close app with back button