|
How to this 2 jquery animate like this
I have a page which height is 1500px, I want to open the page, then show the page from top to the bottom for a review, then back to the top. I use this jQuery animate code, but it can not work well. how to write correctly? Thanks.
jQuery(function(){
$('body,html').animate({
scrollTop:1500
}, 3000)
.animate({
scrollTop:-1500
}, 3000);
});
1 Answer
Posted: MacOS 2 of 2 people found this answer helpful. Did you? Yes No Thanks, Merry Christmas. |
© Advanced Web Core. All rights reserved

