WordPress/wp-includes/js/jquery/ui/effect-shake.min.js
desrosj 99dfd1ca08 Build/Test Tools: Update npm devDependencies 6.6.
This updates the npm `devDependencies` for Core to their latest versions, with one exception. The latest version of `sinon` causes some test failures and requires more investigation.

Fixes #61498.
Built from https://develop.svn.wordpress.org/trunk@58563


git-svn-id: http://core.svn.wordpress.org/trunk@58011 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-06-25 13:05:27 +00:00

9 lines
820 B
JavaScript

/*!
* jQuery UI Effects Shake 1.13.3
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
* https://jquery.org/license
*/
!function(e){"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(h){return h.effects.define("shake",function(e,n){var t=1,i=h(this),a=e.direction||"left",f=e.distance||20,u=e.times||3,s=2*u+1,o=Math.round(e.duration/s),c="up"===a||"down"===a?"top":"left",a="up"===a||"left"===a,r={},d={},m={},g=i.queue().length;for(h.effects.createPlaceholder(i),r[c]=(a?"-=":"+=")+f,d[c]=(a?"+=":"-=")+2*f,m[c]=(a?"-=":"+=")+2*f,i.animate(r,o,e.easing);t<u;t++)i.animate(d,o,e.easing).animate(m,o,e.easing);i.animate(d,o,e.easing).animate(r,o/2,e.easing).queue(n),h.effects.unshift(i,g,1+s)})});