HTML5 Scratch Card
Responsive and touch enabled
Scratch.js is a standalone library with no external dependencies which brings interactivity to your website by allowing you to generate scratch cards for your visitors.
Based on HTML5, scratch.js generate canvas on the fly and is optimized for all modern browsers and has touch support for mobile devices. You can use it to make scratch cards, coupons, promotionnal game and even advertisement.
Lightweight and easy to use
scratch.js has been designed to be both accessible to anyone and flexible.
No need for jquery or any other library, just paste 2 lines of javascript in your source file and start using scratch.js and add interactivity in the design of your website.
A complete documentation that covers all installation and integration aspects is included.
Fully configurable
Images, brush size, end event: scratch.js allows you to personnalize every aspect of your scratch cards.
In this example the end event will be triggered as soon as 90% of the foreground image has been scratched of:
0%