Virtual scratch card game.
Download the production version or the development version.
In your web page:
Markup:
<div class="scratchit">
<img src="images/image-to-scratch.jpg" width="400" height="200" />
<img src="images/image-to-reveal.jpg" width="400" height="200" />
<canvas width="400" height="200"></canvas>
</div>
JS:
<script src="jquery.js"></script>
<script src="dist/scratchit.min.js"></script>
<script>
$(function() {
var $scratchit = $('.scratchit').scratchIt();
});
</script>
MIT © Michelle Anderson