Scroll Revealing "Back to the Top" Button

Is there currently a way to create a “back to the top” button that reveals when scrolling down and disappears at some point of the page when scrolling up?


Great question!

You can use Velo to trigger an element to show/hide based on the scroll position.

Here is an example code below:

$w (“#myElement”). onViewportEnter ( ( event ) => {

thank you

Hi, how can achieve this without Velo? As i do not have any coding knowledge.