Topic: Floating Button to the Top

Odermatt premium asked 2 years ago

How can I implement a floating fixed action button with the function scrolling to the top?

  • When the user scrolls down 200px from the top of the document, show the button
  • When the user clicks on the button, scroll to the top of the document

Many thank, Urs

Dawid Wajszczuk staff answered 2 years ago


Use the solution from this snippet:

Keep coding,

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Premium
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.9.0
  • Device: all
  • Browser: all
  • OS: all
  • Provided sample code: No
  • Provided link: No