Large

Image Solitaire Effect

By Alex Leone Last update Dec 6, 2009 — Installed 49 times.


Script Summary: Windows solitaire ending effect on all images if the mouse is moved into the bottom right corner of the page.

The effect is created by:
1. Adding an html 5 canvas tag to the document that fills the page
2. using canvas.getContext('2d').drawImage() to draw the images.

The page will require a refresh after the effect because the canvas catches all the mouse click events.