Hello,
I am using the ScrollSmoother plugin and I created a button to smoothly scroll down to a specific element using :
button.addEventListener('click', () => {
gsap.to(Smooth, {
scrollTop: Smooth.offset('#formsection', 'top top'),
duration: 3,
ease: 'power4.inOut'
})
})
The problem is that the #formsection can be taller or smaller than 100vh. when #formsection is taller than the height of the screen (100vh) the code above is work