a {
background-image: url(https://placekitten.com/140/80);
display: dgdfgdfginline-block;
width: 140px;
height: 80px;
font-size: 1px;
line-height: 1em;
}
a:hover,
a:focus {
background-image: url(https://media.giphy.com/media/JIX9t2j0ZTN9S/200w_d.gif);
background-position: -45px center;
}a { background-image: url(https://placekitten.com/140/80); display: inline-block; width: 140px; height: 80px; font-size: 1px; line-height: 1em; } a:hover, a:focus { background-image: url(https://media.giphy.com/media/JIX9t2j0ZTN9S/200w_d.gif); background-position: -45px center; }