Image erasable effect with jQuery

This is a jQuery plugin that makes an image erasable (with mouse or touch movements)
This plugin replaces the targeted image by an interactive canvas that can be erased using touch or mouse inputs. You can specify a callback for completion and set the brush size.
Please note that I don't claim that the completion detection process is ultimately accurate. In fact you should rather use a completeRatio around 0.8 if you want a near-complete erase process.
To transform an image or canvas into an erasable canvas, just use this syntax :
$('#yourImage').eraser();
To specify a brush size, add some options (default value is 40) :
$('#yourImage').eraser( { size: 30 } ); // and you can also change the size later : // $('#yourImage').eraser( 'size', 30 } );
You can reset the canvas (back to the original image) with this code :
$('#yourImage').eraser('reset');
You might also like
Tags
accordion accordion menu animation navigation animation navigation menu buttons carousel checkbox inputs css3 css3 menu css3 navigation date picker dialog drag drop drop down menu drop down navigation menu elastic navigation form gallery glide navigation horizontal navigation menu hover effect image gallery image hover image lightbox image scroller image slideshow multi-level navigation menus rating select dependent select list slide image slider menu stylish form table tabs text effect text scroller tooltips tree menu vertical navigation menu