© Jeanine Meyer 2018
Jeanine MeyerHTML5 and JavaScript Projectshttps://doi.org/10.1007/978-1-4842-3864-6_8

8. Jigsaw Video

Jeanine Meyer1 
(1)
New York, USA
 
In this chapter, you will learn the following:
  • Ways to break up an image into pieces to produce pieces for a jigsaw puzzle

  • How to respond to player moves to move pieces around to solve the puzzle

  • How to calculate horizontal and vertical coordinates and manipulate left and top style attributes to reposition elements on the screen

  • About the concept of tolerance or margin so your player does not have to be perfect to solve the puzzle

  • How to make the completed jigsaw appear to turn into a running video

Introduction

The project for this chapter is a jigsaw puzzle that becomes a video when complete. It has ...

Get HTML5 and JavaScript Projects: Build on your Basic Knowledge of HTML5 and JavaScript to Create Substantial HTML5 Applications 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.