aos library slow animation angular code example
Example 1: aos
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init();
</script>
Example 2: aos library slow animation angular
$ npm install aos --save
//In angular.json
styles: [... "node_modules/<your-site>/aos/dist/aos.css"]
//In component.ts
import * as AOS from 'aos';
ngOnInit() {
AOS.init();
}
//In component.html
<div data-aos="fade-left"></div>