aos library 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:
- jquery links
- react and bootstrap
- how to send post request js fetch
- vuejs remove object from array
- How to get the path to the file that required your module?
- insert into specific array index
- factorial function javascript
- bracket notation javascript
- array reduce
- js clone array
- rimraf node_modules
- Mobx-react console warning related observer
- add object to array react hook
- add class to html tag javascript
- access method globally js
- jquery cheat sheet
- random function javascript
- vue v-for object
- .net mvc javascript function call link
- new jsonobject java
- Javascript get classes list
- webview javascript enabled
- array sort
- biden trump javascript real time election