Link on same page with ID and # animation
Hello there.
Let's say I have a button on top of the page with a link #register-now and a contact form on the bottom of the page with an ID of register-now.
I noticed that there is no smooth animation when I click the button, it moves the screen down correctly but this lack of smoothness is not good.
Is there any way to enable this smooth movement effect with these links? Or do you have any other way of accomplishing this kind of thing?
Thanks in advance.
Comments
Hi,
You must add a scroll class to your button.
Best regards
Sorry for the late reply.
Thanks for that, but I was thinking of a more global choice. So, I created a js script and every anchor button now moves smoothly.
Best regards
The scroll class is already built into our theme, and every anchor link with this class has a smooth scroll, but if your solution suits you better, then I am happy to see that you found this solution.
Best regards