Question
1
Replies
214
Views

Tech Mahindra
CA
Posted: June 21, 2022
Last activity: August 19, 2022
Last activity: 19 Aug 2022 7:10 EDT
Scroll to top button on right side of screen
Hi,
We have a requirement in which whenever the user scrolls down a button should appear on the right side similar to this website.
On click of button, it should scroll to the top of the screen smoothly. I've tried creating a custom HTML rule and button is visible and fixed on the right side. But the javascript is not executing as expected and screen goes blank on click of button.
Any inputs are much appreciated.
Thanks,
Satish
***Edited by Moderator Marije to add Capability tags***