I was taking a look at ScrollMagic's documentation. I see that I can use a callback function to change the scroll behavior as shown below:
controller.scrollTo(function (newScrollPos) {
$("body").animate({scrollTop: newScrollPos});
});
Is there a way to pass more parameters to this function? For some specific links/anchors, I would like to use an offset. I have not been able to figure out how to pass more parameters, or how to get the ScrollTarget from within the callback.