Supporting Objects

We have created the following components, each one in its own file inside the common/js directory:

requestAnimationFrame

The window.requestAnimationFrame() method tells the browser that you wish to perform an animation and requests that the browser call a specified function to update an animation before the next repaint. This will request that your animation function be called before the browser performs the next repaint.

Although we have enough foundation to understand how each components works, we will cover each component in Chapter 9, Putting It All Together. That being said, if you can't wait, feel free to inspect the source code to get an idea of what's to come.