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


Hi,

Use the solution from this snippet: https://mdbootstrap.com/snippets/standard/d-wajszczuk/3256667#html-tab-view.

Keep coding,
Dawid



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

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