gif animation on image jquery

Solutions on MaxInterview for gif animation on image jquery by the best coders in the world

showing results for - "gif animation on image jquery"
Cassie
28 Jul 2020
1$(function(){
2  $('img').each(function(e){
3    var src = $(e).attr('src');
4    $(e).hover(function(){
5      $(this).attr('src', src.replace('.gif', '_anim.gif'));
6    }, function(){
7      $(this).attr('src', src);
8    });
9  });
10});
11