Hey I would like a magnifying glass or some image to pop over another image when on mouseover like this website - http://www.elegantthemes.com/gallery/ When you hover over an image an image appears over it. Does anyone know how to achieve this?
Not sure if you need any code but here's my css for the img tag:
img {
width: 600px;
height: 342px;
border-radius: 1px;
}
You can do it with
HTML
CSS
There is a jquery plugin for this.
The first effect is what you're looking for.
You need to check the CSS
position
attribute, so you can have both elements on the same place. And then just chang theopacity
of the hover image.@Mateusz has the best answer, but I would improve upon that by adding the css transition something along the lines of this:
Try this:
HTML:
CSS:
filter: alpha
is for IE, I hope it helps.You can try this. I think it uses only CSS.