The animation looks great, but it all flies by too fast. We want to add a pause after the text zooms in and before it zooms back out, holding the word in place long enough for it to register with the viewer. (See extra bits on Page 78.) stop(); pauseAnim = setInterval(this,"nextFrame",5000); This code stops the animation, creates a timer, and moves to the next frame after 5 seconds (5000 milliseconds). clearInterval(pauseAnim) ;play(); |