Start a jquery script at time x with popcorn.js?

218 Views Asked by At

Is it possible to start a .animate() jquery function at time x with the popcorn.js libary?

1

There are 1 best solutions below

0
On

Yes you can. You are looking for the cue method.

var pop = Popcorn.youtube( "#video", "http://www.youtube.com/watch?v=9oar9glUCL0" );

// At 5 seconds animate '#otherElement'
popcorn.cue(5, function() {
    $('#otherElement').animate();
});

pop.play();