I can't get an image to fade in and out with the transition thing in css. Can somebody see the problem? I'm not trying to get the background transitioned only the img that has a hover on it.
.icongestaltung{
background: url(images/startpageicon_draw.png) no-repeat;
background-size: contain;
width: 8em;
height: 8em;
float: left;
-webkit-transition: all .7s ease-in-out;
-moz-transition: all .7s ease-in-out;
transition: all .7s ease-in-out;
}
.icongestaltung:hover{
background-image:url("images/startpageicon_gestaltungunddesign.png");
}
<!DOCTYPE html>
<html>
<body>
<div class="startpageicons">
<div class="icongestaltung">
</div>
</div>
<footer>
</footer>
</body>
</html>
Thanks :)