Hello, I installed both aos and @types/aos, but I can't get it to animate my div on scroll.
I added it to angular.json in styles, in scripts, I import the library in the component it's used in, and I initialize it in ngOnInit.
There's simply no animation shown when I scroll down to the div.
import { Component, OnInit } from '@angular/core';
import * as AOS from 'aos';
@Component({
selector: 'app-slitbanners',
templateUrl: './slitbanners.component.html',
styleUrls: ['./slitbanners.component.scss']
})
export class SlitbannersComponent implements OnInit {
constructor() { }
ngOnInit(): void {
AOS.init();
}
}
<div data-aos="fade-right" class="slitbanner">
Here's how I added it, and I believe that's how it should be done, but it doesn't animate my div on scroll at all. No errors in the console.