Submit a enquiry






Back to all posts

Smooth scroll to section on page load (jQuery)

Tip
by Abdul Bahri Developer

As normal a page will load to a specific location with no transition, with this cool snippet you can add an animation that loads a new page and smooth scrolls from the top, through to the section located in 0.001 seconds.

Similar to a preloader/loading animations on page start.

You can add anchors to a page when JS isn’t present.

Below is the code you need for the scroll feature, I have modified it to respond with any browser.

You can find the original scrip at StackOverflow.com. 

If you are having any issues with navigation on your website or you have any questions about this post please get in touch with the Gooey team either view email hello@abitgooey.com or call us on 0161 237 3114, we’d love to chat.