Reproducing A Clever Animation Product, Part 12

If we have the full animation state specified for every animation step then one of the easiest things we can do is to change the speed of the animation by changing the increment, which is shown below.

Clicking on any of the speed buttons sets the animation increment by calling the setSpeed(speed) function at the bottom of the listing. Note that the current direction of animation, forwards or backwards, has to be preserved as well.

This entry was posted in Tools and methods and tagged , , . Bookmark the permalink.

Leave a Reply