# Scroll to Top button not working

**URL:** <https://forums.realmacsoftware.com/t/scroll-to-top-button-not-working/47107>\
**Category:** Elements\
**Created:** [April 11, 2025, 2:54am UTC](https://forums.realmacsoftware.com/t/scroll-to-top-button-not-working/47107 "2025-04-11T02:54:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ttang](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ttang/32/19285_2.png) [@ttang](https://forums.realmacsoftware.com/u/ttang)\
**Post date:** [April 11, 2025, 2:54am UTC](https://forums.realmacsoftware.com/t/scroll-to-top-button-not-working/47107/1 "2025-04-11T02:54:58Z")

</div>

Hi,

I’m using Elements 0.7.4  
I copied the code showed on Tutorial ‘scroll to top’ button and followed the instructions. However, the button didn’t show.  
Here is the link of my testing project.  
[testing project](elementsapp://downloadDocument/VKWuD5NIWfdd)

Can you pls. help?

---

<div class="post-metadata">

**Author:** ![handshaper](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/handshaper/32/27373_2.png) [@handshaper](https://forums.realmacsoftware.com/u/handshaper)\
**Post date:** [April 11, 2025, 4:46am UTC](https://forums.realmacsoftware.com/t/scroll-to-top-button-not-working/47107/2 "2025-04-11T04:46:47Z")

</div>

The reason it is not working in your test project is because the scroll distance is set to 200 and you cannot scroll far enough on the page to see the scroll to top show up.

I changed the vbalue from 200 to 100 and it worked just fine.

---

<div class="post-metadata">

**Author:** ![ttang](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ttang/32/19285_2.png) [@ttang](https://forums.realmacsoftware.com/u/ttang)\
**Post date:** [April 11, 2025, 5:46am UTC](https://forums.realmacsoftware.com/t/scroll-to-top-button-not-working/47107/3 "2025-04-11T05:46:11Z")

</div>

Thanks a lot !
