DEV Community

Discussion on: Scroll-to-top Button in vanilla JS (Beginners)

Collapse
 
ljcdev profile image
ljc-dev

Hey John, thx for the precious feedback! I didn't notice that the button was still inside the page 😅. I've increased the translate value from 50 to 100px because it's at 50px from the bottom and its height is 35px so by translating 100px down it's completely out of the screen. Thx again for taking your time to explain this flaw 😁!!!