jQuery动画滚动 [英] jQuery animate scroll
问题描述
我不确定如何调用效果,但是有人可以将我指向一个可以帮助我实现与本网站相同效果的库吗?
I'm not sure how to call the effect, but can someone point me into a library that would help me do the same effect as this website?
< a href = http://www.makr.com> http://www.makr.com
基本上,它在行中向上移动单击鼠标到页面顶部。如果没有专门的效果库,则最好使用jQuery代码段。
Basically, it moves up the row to the top of the page on mouse click. A code snippet, preferably jQuery, can help to, if there is no such specialized effect library for it.
我不确定是否需要启动另一个主题,但是可以有人用一个小的jQuery代码段帮助我实现Makr UI的全部效果吗?
Im not sure if i need to start another topic, but can anyone help me with a small jQuery snippet to achieve the whole effect of the Makr UI?
推荐答案
您可以为
$('html, body').animate({
scrollTop: $(".middle").offset().top
}, 2000);
访问此网站:
http://papermashup.com/jquery-page-scrolling/
这篇关于jQuery动画滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!