WordPress/wp-includes/js/jquery/ui/effect-pulsate.min.js

9 lines
655 B
JavaScript

/*!
* jQuery UI Effects Pulsate 1.13.3
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
* https://jquery.org/license
*/
(e=>{"function"==typeof define&&define.amd?define(["jquery","../version","../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,a=0,u=1,t=n.queue().length;for(!f&&n.is(":visible")||(n.css("opacity",0).show(),a=1);u<s;u++)n.animate({opacity:a},o,e.easing),a=1-a;n.animate({opacity:a},o,e.easing),n.queue(i),c.effects.unshift(n,t,1+s)})});