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 :: getitem localstorage 
Javascript :: js trigger window resize 
Javascript :: html2canvas angular 
Javascript :: convert json object to array javascript 
Javascript :: jsp include html 
Javascript :: mysql json array contains 
Javascript :: react not getting img by src 
Javascript :: gsap js link 
Javascript :: javascript hashtag url 
Javascript :: first n even numbers sum javascript 
Javascript :: useeffect with cleanup 
Javascript :: anonymous function jquery 
Javascript :: angular mat datepicker timezone 
Javascript :: JS ignoring accents 
Javascript :: remove a user from a reaction discord.js 
Javascript :: discord.js v13 intents 
Javascript :: window.location.search get parameters react 
Javascript :: how to call web api with the useeffect hook in react 
Javascript :: bcd full form in electronics 
Javascript :: import file json angular 12 
Javascript :: js calculate date difference 
Javascript :: string contains substring javascript 
Javascript :: Could not find the drag and drop manager in the context of ResourceEvents. Make sure to wrap the top-level component of your app with DragDropContext 
Javascript :: js get seconds difference 
Javascript :: jquery on click remove parent div 
Javascript :: javascript text new line 
Javascript :: js strict mode 
Javascript :: javascript string format 
Javascript :: js iterate match indexes 
Javascript :: truncate text javascript 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =