Sha256: 73b8b6b87701150ea7eff281cc1e7b86a2d570f23b45ae2c2f93cad698c89fb0
Contents?: true
Size: 1.03 KB
Versions: 23
Compression:
Stored size: 1.03 KB
Contents
/*! * jQuery UI Effects Shake 1.10.3 * http://jqueryui.com * * Copyright 2013 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/shake-effect/ * * Depends: * jquery.ui.effect.js */ !function(e){e.effects.effect.shake=function(t,i){var a,f=e(this),n=["position","top","bottom","left","right","height","width"],s=e.effects.setMode(f,t.mode||"effect"),o=t.direction||"left",c=t.distance||20,r=t.times||3,u=2*r+1,p=Math.round(t.duration/u),d="up"===o||"down"===o?"top":"left",h="up"===o||"left"===o,m={},g={},l={},q=f.queue(),v=q.length;for(e.effects.save(f,n),f.show(),e.effects.createWrapper(f),m[d]=(h?"-=":"+=")+c,g[d]=(h?"+=":"-=")+2*c,l[d]=(h?"-=":"+=")+2*c,f.animate(m,p,t.easing),a=1;r>a;a++)f.animate(g,p,t.easing).animate(l,p,t.easing);f.animate(g,p,t.easing).animate(m,p/2,t.easing).queue(function(){"hide"===s&&f.hide(),e.effects.restore(f,n),e.effects.removeWrapper(f),i()}),v>1&&q.splice.apply(q,[1,0].concat(q.splice(v,u+1))),f.dequeue()}}(jQuery);
Version data entries
23 entries across 23 versions & 1 rubygems