I am trying to make animated icon to be playable every time on hover instead of just once. But I cant make it work with mouseout
There is my code:
<div class="shapeshifter" id='btn' style="background-image:
url(sprite_60fps.svg) "></div>
<script>
document.getElementById('btn').addEventListener('mouseover',
function() {
this.classList.add('play');
});
</script>