Clone Project

Scroll To Top When Tab Changes

Created by
Memberstack
Similar Projects
Oops! Something went wrong while submitting the form.

0 Comments

Be the first to leave a comment.
Loading
User is typing...
No Name
Set
4 years ago
Moderator
This is the actual comment. It's can be long or short. And must contain only text information.
(Edited)
No Name
Set
2 years ago
Moderator
This is the actual comment. It's can be long or short. And must contain only text information.
(Edited)
Load More
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Load More
Description:  
Description from Webflow:  
Happy Wednesday! If you have a long tabs section with a sticky menu, as you may no, it's not the best user experience - when a user switches the tab, it will remain in it's current scroll position - even though the content itself is new. With this solution, every time the tab is changed, it will scroll to the top of the tabs section, and you can even add an offset to make sure it doesn't block stuff like your navbar. To get the code, go to https://www.memberstack.com/scripts/scroll-top-tab-changes
Tags from Webflow: 
tabs,  tab,  sticky,  positionsticky,  memberscript,  memberscripts
.