I tried using the following code:
$('#divid').html(html).animate ({scrollTop:0}, "fast");
I am also tired of using this code:
$('#divid').html(html).animate ({scrollTop:0}, "500");
My ultimate goal is for users to adjust the scroll speed and pass this parameter to the animation function. But both methods do not affect the scroll speed. What am I doing wrong?
user1735607
source share