It is actually quite cool, I tried similar thing (albeit a trivial approach) with css only: http://cssdesk.com/VYN67
Try changing image url in source to see different effect.