play gif on hover css
snippet in html

play gif on hover css

user3621

<!-- HTML -->
<img class="static" src="https://lh4.googleusercontent.com/-gZiu96oTuu4/Uag5oWLQHfI/AAAAAAAABSE/pl1W8n91hH0/w140-h165-no/Homer-Static.png">

<img class="active" src="https://lh4.googleusercontent.com/i1RprwcvxhbN2TAMunNxS4RiNVT0DvlD9FNQCvPFuJ0=w140-h165-no">

<!-- CSS -->
<style>
  .static {
    position: absolute;
    background: white;
  }

  .static:hover {
    opacity: 0;
  }
</style>