There is a hey template in which the animation is implemented via the ScrollMagic and TweenMax libraries. The customer wants to make a smoother scrolling so that the animation when scrolling the diva to the end plays itself, as is done in the top menu.
I found a function in the code that is responsible for scrolling in the top menu:
function scrollTo(event) { var target = $(this).attr('href').split('#'); controller.scrollTo('#' + target[target.length - 1]); event.preventDefault(); } How would I modify it now so that it gets called when the main section div ends?