I was just wondering if anyone has successfully got ScrollToPlugin (v3.0.5) to work with Angular 8. I have it working to a certain degree but it does not respect the vars in the tween.
gasp.to(window,
{
delay: 0,
duration: 10,
ease: 'back',
scrollTo: 978
}
All that happens is a smoothScroll to 978. The 'ease' is ignored and strangely the 'delay' is 10secs which is what the duration is set to!
My component contains:-
import { gsap } from 'gsap/all';
import ScrollToPlugin from 'gsap/ScrollToPlugin';
constructor() {
gsap.registerPlugin(ScrollToPlugin);
}
ngOnInit() {
const plugins = [ScrollToPlugin];
}
Thanks a lot if anyone can help!!