开发者

How to define jQuery scroll settings?

开发者 https://www.devze.com 2023-02-19 06:46 出处:网络
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).

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

精彩评论

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