I have a animated gif as a background image which is activated when you hover a link. But once activated it just keeps on playing even though you're not hovering the link and even though it isn't visible. Are there any ways to restart the gif every time you hover over the link, using css only?
Here is my code so far
<div id="zichtbaar">
<a href="?link?">Zichtbaar<span></span></a>
and the CSS
#zichtbaar a span {
display: none;
background-image: url("background.gif");
background-size: contain;
background-position: fixed;
background-repeat: no-repeat;
position: fixed;
width: 100%;
height: 100%;
left: 25%;
top: 35px;
z-index:-9999;
#zichtbaar a:hover span {
display:block;
}