Another option is to use JS:
<img src="https://stackoverflow.com/questions/18813299/LibraryTransparent.png" onmouseover="this.src="LibraryHoverTrans.png";" onmouseout="this.src="https://stackoverflow.com/questions/18813299/LibraryTransparent.png";" />
More Related Contents:
- How to make in CSS an overlay over an image?
- Black image fade over image [duplicate]
- Image inside div has extra space below the image
- How to affect other elements when one element is hovered
- When to use IMG vs. CSS background-image?
- What is the effect of encoding an image in base64?
- CSS Display an Image Resized and Cropped
- Inline elements shifting when made bold on hover
- Is there an equivalent to background-size: cover and contain for image elements?
- Removing whitespace between HTML elements when using line breaks
- Should I specify height and width attributes for my IMGs in HTML?
- How to show text on image when hovering?
- Make an image responsive – the simplest way [duplicate]
- How can I make all images of different height and width the same via CSS?
- CSS image resize issue
- Floating an image to the bottom right with text wrapping around
- Scale image to fit a bounding box
- img tag displays wrong orientation
- How does one use the onerror attribute of an img element
- Image scaling causes poor quality in firefox/internet explorer but not chrome
- How can I resize an image to a percentage of itself with CSS?
- How to remove/ignore :hover css style on touch devices
- CSS align images and text on same line
- How to auto-resize an image while maintaining aspect ratio
- download webpage and dependencies, including css images [closed]
- CSS Border on PNG image with transparent parts
- Why use a sprite sheet rather than individual images?
- How to center image in a div horizontally and vertically
- How to forcefully print background image in HTML?
- Setting the image `width: 0` hides it, while `width: 0%` makes it occupy the space, too