Alex Rivera | Logout

Fade in fade out on image hover using CSS3?

Asked 2012-07-07T14:15:51.910
15

I was wondering if it was possible to state an unhover class at all on an image?

What I am trying to achieve is when someone hovers over an image it will fade in and then when they unhover it fades back out?

Heres my code, I got the fade in to work when someone hovers over an image but I need it too fade out when they unhover... hope this made sense.

http://jsfiddle.net/L7XCD/

Edit
Report

1 Answer

4

http://jsfiddle.net/L7XCD/2/ Just add the transition effect to your element without the hover-tag

answered 2012-07-07T14:21:51.507

Your Answer