usr-local-ΕΨΗΕΛΩΝ
usr-local-ΕΨΗΕΛΩΝ

Reputation: 26894

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, so how do I call it after scroll has completed?

Upvotes: 0

Views: 282

Answers (1)

Dutchie432
Dutchie432

Reputation: 29160

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

Upvotes: 1

Related Questions