Smooth Scrolling

Smoothly scroll to element

Any anchor tag with the .js-scrollToElement class will smoothly scroll to the element.
Accepts data-speed and data-easing attributes. Full list of easing names can be found here

Demo

Jump to #section











































Section

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Deserunt eveniet excepturi minima nostrum quaerat repudiandae ut, voluptates. Id itaque magni reiciendis sunt voluptatibus. Cumque eveniet explicabo mollitia nostrum placeat recusandae?

<a href="#elementToScrollToId" class="js-scrollToElement" data-speed="1500" data-easing="easeInOutCubic">Jump to Element</a>