# Go Up Button

**URL:** <https://forum.wixstudio.com/t/go-up-button/6718>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [September 17, 2018, 7:59pm UTC](https://forum.wixstudio.com/t/go-up-button/6718 "2018-09-17T19:59:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafael-llaverias](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/rafael-llaverias/32/1139_2.png) [@rafael-llaverias](https://forum.wixstudio.com/u/rafael-llaverias)\
**Post date:** [September 17, 2018, 7:59pm UTC](https://forum.wixstudio.com/t/go-up-button/6718/1 "2018-09-17T19:59:38Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![mqumseya](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/mqumseya/32/3999_2.png) [@mqumseya](https://forum.wixstudio.com/u/mqumseya)\
**Post date:** [September 18, 2018, 6:35am UTC](https://forum.wixstudio.com/t/go-up-button/6718/2 "2018-09-18T06:35:47Z")

</div>

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](https://www.wix.com/code/reference/$w.ViewportMixin.html)

hope this helps,  
Majd
