0

I am wondering how I can fade out a div box before scrollable starts and fade it in after the animation stops? Because for me it looks like I start scrollable and then it runs in background and looks for events.

Is there a function like onBeforeStart() or similar?

Greets Max

1 Answer 1

3
$('#element').fadeOut('slow', function(){
//start scrollable and fadein here
})

by doing this, Scrollable starts only after fadeout is complete.

UPDATE

Using scrollable from jQuery tools, you can use the events onBeforeSeek and onSeek to fire an action before scroller starts or after it completes. You can read more about the events in the documentation at http://flowplayer.org/tools/scrollable/index.html.

To run a function after scrolling has completed, you do something like this

$("#element").scrollable({
    onSeek: function(event, i) {
         //Whatever goes here         
    }
})
Sign up to request clarification or add additional context in comments.

2 Comments

Thank you. And how can I determine if the scrollable animation has finished?
jQuery doesn't come with a scrollable function. What plugin are you using for that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.