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?
Hi,
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 ) => {
$w(“#backToTop”).show();
});
thank you
Hi, how can achieve this without Velo? As i do not have any coding knowledge.