2013-05-08 12:06:54 +00:00
|
|
|
/*!
|
2024-10-30 16:22:18 +00:00
|
|
|
* jQuery UI Effects Puff 1.14.1
|
2024-04-26 14:25:34 +00:00
|
|
|
* https://jqueryui.com
|
2013-05-08 12:06:54 +00:00
|
|
|
*
|
2022-07-19 07:36:55 +00:00
|
|
|
* Copyright OpenJS Foundation and other contributors
|
2013-05-08 12:06:54 +00:00
|
|
|
* Released under the MIT license.
|
2024-04-26 14:25:34 +00:00
|
|
|
* https://jquery.org/license
|
2013-05-08 12:06:54 +00:00
|
|
|
*/
|
2014-10-30 19:55:08 +00:00
|
|
|
|
|
|
|
//>>label: Puff Effect
|
|
|
|
//>>group: Effects
|
|
|
|
//>>description: Creates a puff effect by scaling the element up and hiding it at the same time.
|
2024-04-26 14:25:34 +00:00
|
|
|
//>>docs: https://api.jqueryui.com/puff-effect/
|
|
|
|
//>>demos: https://jqueryui.com/effect/
|
2014-10-30 19:55:08 +00:00
|
|
|
|
2015-03-18 14:39:12 +00:00
|
|
|
( function( factory ) {
|
2021-06-06 22:58:12 +00:00
|
|
|
"use strict";
|
|
|
|
|
2013-07-12 16:40:48 +00:00
|
|
|
if ( typeof define === "function" && define.amd ) {
|
2013-05-08 12:06:54 +00:00
|
|
|
|
2013-07-12 16:40:48 +00:00
|
|
|
// AMD. Register as an anonymous module.
|
2015-03-18 14:39:12 +00:00
|
|
|
define( [
|
2013-07-12 16:40:48 +00:00
|
|
|
"jquery",
|
2015-07-15 02:01:41 +00:00
|
|
|
"../version",
|
|
|
|
"../effect",
|
2013-12-02 18:36:12 +00:00
|
|
|
"./effect-scale"
|
2013-07-12 16:40:48 +00:00
|
|
|
], factory );
|
|
|
|
} else {
|
|
|
|
|
|
|
|
// Browser globals
|
|
|
|
factory( jQuery );
|
|
|
|
}
|
2021-06-06 22:58:12 +00:00
|
|
|
} )( function( $ ) {
|
|
|
|
"use strict";
|
2013-07-12 16:40:48 +00:00
|
|
|
|
2012-12-26 13:35:42 +00:00
|
|
|
return $.effects.define( "puff", "hide", function( options, done ) {
|
|
|
|
var newOptions = $.extend( true, {}, options, {
|
2013-05-08 12:06:54 +00:00
|
|
|
fade: true,
|
2012-12-26 13:35:42 +00:00
|
|
|
percent: parseInt( options.percent, 10 ) || 150
|
2015-03-18 14:39:12 +00:00
|
|
|
} );
|
2013-05-08 12:06:54 +00:00
|
|
|
|
2012-12-26 13:35:42 +00:00
|
|
|
$.effects.effect.scale.call( this, newOptions, done );
|
2015-03-18 14:39:12 +00:00
|
|
|
} );
|
2013-05-08 12:06:54 +00:00
|
|
|
|
2021-06-06 22:58:12 +00:00
|
|
|
} );
|