I have a div that displays a back to top arrow image(sprite). I am changing the background-position using css to achieve the color change.
How can I transition the color of the arrow without using background-position transition? I am looking for a background-color transition effect but I can't use it since I want the background of the div to be transparent. Hope my question isn't too confusing.
css:
.top{
background:url(../images/top.png) -10px -10px;
background-repeat:no-repeat;
width:20px;
height:20px;
display:block;
margin:0 auto;
cursor:pointer;
}
.top:hover{
background:url(../images/top.png) -10px 30px;
}