Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Gif Animation on Image jquery

$(function(){
  $('img').each(function(e){
    var src = $(e).attr('src');
    $(e).hover(function(){
      $(this).attr('src', src.replace('.gif', '_anim.gif'));
    }, function(){
      $(this).attr('src', src);
    });
  });
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Gif #Animation #Image #jquery
ADD COMMENT
Topic
Name
1+7 =