This short book explains how to create animated graphics with HTML5 sprite sheets. Learn how to prepare sprite sheets with JavaScript, HTML markup and Photoshop, or a similar graphics application. Learn to arrange sprite sheet images and display animation online with code.
This book demonstrates how to create three sprite sheet animations including the spinning Android tablet, explosion and exploding coffee pot. Each animation includes different techniques. The spinning Android covers the basics of sprite sheet animation with JavaScript and HTML. The explosion includes an array of coordinates, try-catch blocks, lighting and transparency effects. The exploding coffee pot adds background graphics. The full source code's included with this book along with links to the graphics and JavaScript for each project.
Sprite sheet animation runs on any phone, tablet or computer with an HTML5 compatible browser, which includes most current Androids, iPhones, Windows and Macintosh computers.