Topic: Back to top slower speed

demzl25 premium asked 2 months ago


Expected behavior

How to add js code to Back to top code snippet to be slower around 500ms.

Actual behavior

Now is to fast and when i add smooth-scroll to the Back to top code snippet dosent work properly. Resources (screenshots, code snippets etc.)

Here is my code snippet: https://mdbootstrap.com/snippets/standard/demzl25/4376609#js-tab-view


mlazaru staff answered 2 months ago


Hi,

Unfortunately 'back to top' hasn't such option like 'duration'. Smooth-scroll should do the job, but as i see, there is a bug in this component - data-mdb-easing='linear' doesn't work.

We will fix this soon so please follow our changelog to stay up to date.



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: Premium
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 5.0.0
  • Device: Pc
  • Browser: Chrome 97.0.4692.99
  • OS: window 10
  • Provided sample code: No
  • Provided link: Yes