ElkArte Community

Project Support => Support => Topic started by: Mrs. Chaos on June 18, 2018, 10:10:14 am

Title: Adjustment of the speed of the go down/go top arrows
Post by: Mrs. Chaos on June 18, 2018, 10:10:14 am
Hello!
Where can I adjust how fast a page moves up or down when clicking on the "go top" and "go down" arrows?
Title: Re: Adjustment of the speed of the go down/go top arrows
Post by: Spuds on June 18, 2018, 12:04:42 pm
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.
Title: Re: Adjustment of the speed of the go down/go top arrows
Post by: Mrs. Chaos on June 18, 2018, 12:24:51 pm

Thanks a lot!