Reputation: 26894
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, so how do I call it after scroll has completed?
Upvotes: 0
Views: 282
Reputation: 29160
$.scrollTo( $('#item'), 800, function(){
callToYourFunction();
});
Upvotes: 1