Topic: "Back to the top" button

Pytchoun free asked 5 years ago

<div class="fixed-action-btn smooth-scroll" style="bottom: 45px; right: 24px;">
<a href="#top-section" class="btn-floating btn-large red">
<i class="fas fa-arrow-up"></i>


Hello how to make this button appear only if we are not at the top already ?

Try this code: 

MDBootstrap staff answered 3 years ago

Solution for the latest Bootstrap 5 and MDB 5:

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: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.5.15
  • Device: windwos
  • Browser: chrome
  • OS: windwos 10
  • Provided sample code: No
  • Provided link: No