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

9 lines
646 B
JavaScript
Raw Normal View History

2019-11-02 10:38:58 +01:00
/*!
2020-12-10 14:06:04 +01:00
* jQuery UI Effects Pulsate 1.12.1
2019-11-02 10:38:58 +01:00
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
2021-04-27 08:32:47 +02:00
!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)})});