equal
deleted
inserted
replaced
|
1 /*! |
|
2 * jQuery UI Effects Puff 1.12.1 |
|
3 * http://jqueryui.com |
|
4 * |
|
5 * Copyright jQuery Foundation and other contributors |
|
6 * Released under the MIT license. |
|
7 * http://jquery.org/license |
|
8 */ |
|
9 |
|
10 //>>label: Puff Effect |
|
11 //>>group: Effects |
|
12 //>>description: Creates a puff effect by scaling the element up and hiding it at the same time. |
|
13 //>>docs: http://api.jqueryui.com/puff-effect/ |
|
14 //>>demos: http://jqueryui.com/effect/ |
|
15 |
|
16 ( function( factory ) { |
|
17 if ( typeof define === "function" && define.amd ) { |
|
18 |
|
19 // AMD. Register as an anonymous module. |
|
20 define( [ |
|
21 "jquery", |
|
22 "./effect", |
|
23 "./effect-scale" |
|
24 ], factory ); |
|
25 } else { |
|
26 |
|
27 // Browser globals |
|
28 factory( jQuery ); |
|
29 } |
|
30 }( function( $ ) { |
|
31 |
|
32 return $.effects.define( "puff", "hide", function( options, done ) { |
|
33 var newOptions = $.extend( true, {}, options, { |
|
34 fade: true, |
|
35 percent: parseInt( options.percent, 10 ) || 150 |
|
36 } ); |
|
37 |
|
38 $.effects.effect.scale.call( this, newOptions, done ); |
|
39 } ); |
|
40 |
|
41 } ) ); |