Floating Button to the Top


Topic: Floating Button to the Top

Odermatt pro premium asked 3 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 3 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
  • User: Pro
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 3.9.0
  • Device: all
  • Browser: all
  • OS: all
  • Provided sample code: No
  • Provided link: No
Tags