Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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>
Source by michalsnik.github.io #
 
PREVIOUS NEXT
Tagged: #aos #library #animation #angular
ADD COMMENT
Topic
Name
1+9 =