I am using CSS for a nice overflow effect.
So if I hover an image it fades to another images with this code:
#image{
margin: 0 auto;
width: 100%;
background-position: center;
background-repeat: no-repeat;
height: 400px;
background-image: url('xerath.png');
-o-transition:color .1s ease-out, background 1s ease-in;
-ms-transition:color .1s ease-out, background 1s ease-in;
-moz-transition:color .1s ease-out, background 1s ease-in;
-webkit-transition:color .1s ease-out, background 1s ease-in;
/* ...and now override with proper CSS property */
transition:color .1s ease-out, background 1s ease-in;
}
#image:hover{
background-image: url('riven.png');
}
But now if I hover the image it changes, when i turn my mouse off the image it changes back, I don't want it to change back.
How can i fix this?