Webflow Menus & Navigation

Scroll to Top

Overview
Navigation Bar
Sticky Nav + In-Page Scrolling
5:45
200
Menu Item Styling
Underlined Menu Items
5:45
201
Other Search Mechanisms
Other User Navigation
600
Predictive Search ( Search Bar )
601
Scroll to Top
Scroll to Top
701
No items found.
Published
July 16, 2024
Updated
July 16, 2024
in lightbox

Need a scroll to top button?

Tips

Here are some tips on a best implementation;

Use an inline SVG, e.g. from Relume that accepts currentcolor, to keep it very easy to style on your site.

https://icons.relume.io/collection/all?s=top

Handle the scroll to top using script to ensure it is a smooth scroll.

Place it in your footer component so that it is site-wide.

If you want it to fade in so that it is not visible above the fold, use script for that also to avoid needing a page-interaction, which must be copied to every page manually.

Code

If your ID is scrollToTopBtn;

Here's some code as a starting point, which handles both the scrolling and the fade-In;

Videos
No items found.
Table of Contents
Comments
Did we just make your life better?
Passion drives our long hours and late nights supporting the Webflow community. Click the button to show your love.