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();
});
精彩评论