Change image on hover with CSS3

06.27.2013 by Ilia Raiskin
HTML CSS

In this tutorial we're going to create an image that changes when you hover over it. We'll only use HTML and CSS3.

Demo



First of all we want to say that the image is not actually an HTML <img/>. We use a simple <div>.

HTML

CSS

As you can see the CSS is pretty simple. We use CSS3 transitions for the animation.



About the author

Ilia Raiskin

Ilia Raiskin is a web designer, web developer, blogger and founder of Toolinfy.com.






Comment