jQuery Image Hover?
jQuery Image Hover?
- Started
- Last post
- 4 Responses
- freshdude
I have a small image on a website that I want to enlarge when you rollover it.
The trick is that I want the rollover to be perfectly centered horizontally and vertically over the smaller image.
Without adding white space and making the smaller jpg bigger, is this possible?
I can't seem to find one that works.
- freshdude0
Is there a way to offset a simple javascript rollover, so it's centered?
- funkage0
You mean like this?
http://jsbin.com/igofag/edit#jav…
- freshdude0
^ exactly. But that's one image instead of two?
- funkage0
You could simply replace the second image source.