Open johnwbaxter opened 8 years ago
@johnwbaxter I know this is old, but incase anyone stumbles across this, you need to include the ScrollTo plugin
eg. import ScrollToPlugin from "gsap/ScrollToPlugin"
Following code also work for scroll
controller.scrollTo(function(newScrollPos) {
$("html, body").animate({
scrollTop: newScrollPos
});
});
controller.scrollTo(100);
Close this issue?
I have this code which should scrollTo the selected scene and it should be animated:
That does nothing, but just going to the scene without the animation works fine: