Skip to main content
Topic: Adjustment of the speed of the go down/go top arrows (Read 1082 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Adjustment of the speed of the go down/go top arrows

Hello!
Where can I adjust how fast a page moves up or down when clicking on the "go top" and "go down" arrows?
ElkArte version: 1.1.8 / Theme: BeSocial / PHP 8.0

Re: Adjustment of the speed of the go down/go top arrows

Reply #1

That will be in your theme.js (in themes/your theme/scripts)

Look for "// Smooth scroll to top." and "// Smooth scroll to bottom."  In those areas you will see something like
Code: [Select]
$("html,body").animate({scrollTop: 0}, 1200);
that 1200 is milliseconds so 1.2 seconds ... lower the number to increase the speed, increase the number to slow it down.

 

Re: Adjustment of the speed of the go down/go top arrows

Reply #2


Thanks a lot!
ElkArte version: 1.1.8 / Theme: BeSocial / PHP 8.0