DEV Community

Discussion on: Making a 'Back to Top' button without Javascript

Collapse
 
futureistaken profile image
R Z

Anyway, it's a good idea if you don't want to use onScroll event. You just can add a little bit JS to replace the link with a button.

Collapse
 
rtivital profile image
Vitaly Rtishchev

Yep, that's what I've meant, when replacing js with css, do not forget about the UX