WordPress/wp-includes/js/jquery/ui/effect-pulsate.min.js
desrosj 12ecbce0b2 Build/Test Tools: Backport several GitHub Action improvements and dependency updates.
This backports several GitHub Action improvements and `devDependency` updates to the 5.7 branch.

Backports [50432,50435-50436,50479,50485-50487,50545,50579] to the 5.7 branch.
See #52667, #52643, #52658, #52660, #52624, #52625.
Built from https://develop.svn.wordpress.org/branches/5.7@50584


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50197 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-25 20:02:19 +00:00

9 lines
646 B
JavaScript

/*!
* jQuery UI Effects Pulsate 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
!function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(c){return c.effects.define("pulsate","show",function(e,i){var n=c(this),t=e.mode,f="show"===t,s=2*(e.times||5)+(f||"hide"===t?1:0),o=e.duration/s,u=0,a=1,t=n.queue().length;for(!f&&n.is(":visible")||(n.css("opacity",0).show(),u=1);a<s;a++)n.animate({opacity:u},o,e.easing),u=1-u;n.animate({opacity:u},o,e.easing),n.queue(i),c.effects.unshift(n,t,1+s)})});