Skip to content

Instantly share code, notes, and snippets.

@stpettersens
Created July 4, 2012 17:05
Show Gist options
  • Save stpettersens/3048351 to your computer and use it in GitHub Desktop.
Save stpettersens/3048351 to your computer and use it in GitHub Desktop.
HTML5 canvas 'layers'.
<canvas id="demo-base" style="z-index: 0;" width="730" height="300">
</canvas>
<canvas id="demo-ui" style="z-index: 1;" width="730" height="300">
</canvas>
<canvas id="demo-overlay" style="z-index: 2;" width="730" height="300">
<!-- Message when CANVAS is not supported -->
<em>Your browser does not support the CANVAS element.<br/>
Please use an <a href="http://html5.com">HTML5</a>
-compliant browser to view this demonstration.</em>
<!-- /Message -->
</canvas>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment