开发者

How to define jQuery scroll settings?

My problem is extremely simple: I have to modify a jQuery scrollTo call on existing code in order to execute a callback function after the scroll has completed (some hundreds of milliseconds).

I found this article that explains the scrollTo method. But I don't know how to pass settings too! I already have a function to call开发者_如何学JAVA, so how do I call it after scroll has completed?


$.scrollTo( $('#item'), 800, function(){
     callToYourFunction();
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜