CSS3 Stacks with pseudo-elements
Image stack effect in CSS3 using the :after and :before pseudo elements. These pseudo elements are rotated using transform: rotate(xdeg) rule and are created from the div containing the images as there is no support for :after and :before on img tags. The transitions on these pseudo elements are supported only in Firefox so be sure to check the hover effects in Firefox.