Is there a way I can do the following?
I have a transparent png sprite that shows the standard image on the left, and the image for the state: hover on the right.
Is there any way that the image can disappear from the left image into the desired image: hover using only css3 transitions? I tried the following, but it does not work:
li{-webkit-transition:all 0.5s linear; -moz-transition:all 0.5s linear; -o-transition:all 0.5s linear; transition:all 0.5s linear;} li{background:url(/img/sprites.png) 0 -50px no-repeat;} li:hover{background:url(/img/sprites.png) 0 -150px no-repeat;}
Now the above makes an animated background, it moves the image across. What I would like instead of a pan is the effect of attenuation or dissolution.
UPDATE: I had to create two elements and just animate the opacity separately. This is a bit dirty because I have to specify the exact fields of each element, but I think it will work. Thanks for helping everyone :)
css image css3 css-transitions fade
Jack
source share