Learning more about queuing and playing animation segments

When we queue an animation segment, we pass it a duration, cue points, and keyframes. But we can also pass in other options that affect the playback of the animation segment. We can also call methods on the animation object that affect animation segments currently playing and in the queue.

Before we start messing with these, copy the content of easing-animations.js into a new file called playing-with-the-queue.js. Remove the call to myFirstAnimation.enqueue() at the end; we want a little control when we get into the REPL this time around.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.144.194