Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

aos library animation angular

$ 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>
Comment

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();
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to check if 2 sprites are touching js 
Javascript :: how to check if 2 images are touching js 
Javascript :: jvascript number to column letter 
Javascript :: javascript date set time 23 59 59 
Javascript :: format JSON code javascript 
Javascript :: javascript after dom ready 
Javascript :: elixir file open and parse json 
Javascript :: javascript timestamp in seconds 
Javascript :: update cypress 
Javascript :: check if an id exists javascript 
Javascript :: get index of option in select jquery 
Javascript :: js tolocalestring with hours 
Javascript :: go to previous page 
Javascript :: Codewars Beginner - Reduce but Grow 
Javascript :: node parameter add memory 
Javascript :: century from year javascript 
Javascript :: jquery create div element 
Javascript :: .on change get value 
Javascript :: exceljs column pick from drop down list 
Javascript :: open html file in browser using package.json 
Javascript :: jquery hover function 
Javascript :: add mousedown event listener javascript 
Javascript :: telegraf js sendmessage 
Javascript :: react native metro api level 30 
Javascript :: slider on release call api react material ui 
Javascript :: convert responsetext to json python 
Javascript :: use history react router dom 
Javascript :: javascript button onclick 
Javascript :: how do you remove a remove element from array in javascript 
Javascript :: adonisjs livereload 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =