images

Chapter 2

Basics of JavaScript for Animation

What we'll cover in this chapter:

  • Basic animation
  • An introduction to HTML5
  • Animating with code
  • JavaScript objects
  • User interaction

If the first chapter is a somewhat philosophical overview of animation, this one is a technical overview of what it takes to create an HTML5 document and how to animate using a canvas element and JavaScript. This chapter covers the essentials of document structure, animation loops, JavaScript objects, and user interaction. The techniques you learn here are used throughout the rest of the book.

Basic animation

To start off, let's review what Chapter 1 covers:

  • Animation ...

Get Foundation HTML5 Animation with JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.