aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default/js/ui/minified/effects.shake.min.js
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/js/ui/minified/effects.shake.min.js')
-rw-r--r--themes/default/js/ui/minified/effects.shake.min.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/themes/default/js/ui/minified/effects.shake.min.js b/themes/default/js/ui/minified/effects.shake.min.js
new file mode 100644
index 000000000..fd035edc9
--- /dev/null
+++ b/themes/default/js/ui/minified/effects.shake.min.js
@@ -0,0 +1 @@
+(function($){$.effects.shake=function(o){return this.queue(function(){var el=$(this),props=["position","top","left"];var mode=$.effects.setMode(el,o.options.mode||"effect");var direction=o.options.direction||"left";var distance=o.options.distance||20;var times=o.options.times||3;var speed=o.duration||o.options.duration||140;$.effects.save(el,props);el.show();$.effects.createWrapper(el);var ref=(direction=="up"||direction=="down")?"top":"left";var motion=(direction=="up"||direction=="left")?"pos":"neg";var animation={},animation1={},animation2={};animation[ref]=(motion=="pos"?"-=":"+=")+distance;animation1[ref]=(motion=="pos"?"+=":"-=")+distance*2;animation2[ref]=(motion=="pos"?"-=":"+=")+distance*2;el.animate(animation,speed,o.options.easing);for(var i=1;i<times;i++){el.animate(animation1,speed,o.options.easing).animate(animation2,speed,o.options.easing)}el.animate(animation1,speed,o.options.easing).animate(animation,speed/2,o.options.easing,function(){$.effects.restore(el,props);$.effects.removeWrapper(el);if(o.callback){o.callback.apply(this,arguments)}});el.queue("fx",function(){el.dequeue()});el.dequeue()})}})(jQuery); \ No newline at end of file