Sha256: 18b6a8a1cbb93b9d512c3b6c36eb7f53f6db872ba4460166188985e093ddb7d7
Contents?: true
Size: 536 Bytes
Versions: 47
Compression:
Stored size: 536 Bytes
Contents
jQuery.fn.wiggle=function(e){var a={speed:50,wiggles:3,travel:5,callback:null},e=jQuery.extend(a,e);return this.each(function(){var a=this,l=(jQuery(this).wrap('<div class="wiggle-wrap"></div>').css("position","relative"),0);for(i=1;i<=e.wiggles;i++)jQuery(this).animate({left:"-="+e.travel},e.speed).animate({left:"+="+2*e.travel},2*e.speed).animate({left:"-="+e.travel},e.speed,function(){l++,jQuery(a).parent().hasClass("wiggle-wrap")&&jQuery(a).parent().replaceWith(a),l==e.wiggles&&jQuery.isFunction(e.callback)&&e.callback()})})};
Version data entries
47 entries across 47 versions & 7 rubygems