Hello fellow Wix Code!
I want to add a personalized button to go up, but I need the codes to make it appear when the page goes down.
Hello fellow Wix Code!
I want to add a personalized button to go up, but I need the codes to make it appear when the page goes down.
Hello,
You can create a button, pin it on the page where you want it, and have it hidden on load.
Then, find an element to act as a breakpoint for showing/hiding the button and attach two events for this element: One event for on view port enter and one for view port leave. On view port leave you want to show the go up button, on enter you want to hide it presumably.
More on viewport here: ViewportMixin - Velo API Reference - Wix.com
hope this helps,
Majd