mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-06 19:01:44 +01:00
aef14e6d1b
Props Clorith, mgol, azaozz. Fixes #52163. Built from https://develop.svn.wordpress.org/trunk@51897 git-svn-id: http://core.svn.wordpress.org/trunk@51490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
9 lines
830 B
JavaScript
9 lines
830 B
JavaScript
/*!
|
|
* jQuery UI Effects Shake 1.13.0
|
|
* http://jqueryui.com
|
|
*
|
|
* Copyright jQuery Foundation and other contributors
|
|
* Released under the MIT license.
|
|
* http://jquery.org/license
|
|
*/
|
|
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(h){"use strict";return h.effects.define("shake",function(e,t){var n=1,i=h(this),a=e.direction||"left",f=e.distance||20,u=e.times||3,s=2*u+1,c=Math.round(e.duration/s),r="up"===a||"down"===a?"top":"left",o="up"===a||"left"===a,d={},m={},g={},a=i.queue().length;for(h.effects.createPlaceholder(i),d[r]=(o?"-=":"+=")+f,m[r]=(o?"+=":"-=")+2*f,g[r]=(o?"-=":"+=")+2*f,i.animate(d,c,e.easing);n<u;n++)i.animate(m,c,e.easing).animate(g,c,e.easing);i.animate(m,c,e.easing).animate(d,c/2,e.easing).queue(t),h.effects.unshift(i,a,1+s)})}); |