3

I recently installed and enabled the Back To Top module. It gives a button at right bottom of the screen to scroll back to the top of the page.

How can I increase the scrolling speed?

3

In the file back_to_top/js/back_to_top.js you'll find the following on line 23:

$('html,body').animate({ scrollTop: 0 }, 1200, 'easeOutQuart', function() {

The 1200 is the animation duration in milliseconds. Lower it and the animation will go faster. Optionally you could raise a feature request in the module issue queue to make this a configurable setting.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.