“AOS -Animation Angular” Code-Antworten

AOS Library Animation Angular 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>
MitchAloha

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

Ähnliche Antworten wie “AOS -Animation Angular”

Fragen ähnlich wie “AOS -Animation Angular”

Weitere verwandte Antworten zu “AOS -Animation Angular” auf JavaScript

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen