The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Overlay image on hover? Re: Overlay image on hover?


I was having a play around with @Watson90 ‘s solution to the image on hover and thought it may be of value. In [my version](”), you don’t need to explicitly set the image/element height in the stylesheet, which may make it easier to reuse in other scenarios. The only issue is that you need to make sure the dimensions of the base image and hover image are the same. Alas, I couldn’t get the transition working, so I just took that code out.