[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/js/jquery/ui/ -> effect-puff.js (source)

   1  /*!
   2   * jQuery UI Effects Puff 1.13.3
   3   * https://jqueryui.com
   4   *
   5   * Copyright OpenJS Foundation and other contributors
   6   * Released under the MIT license.
   7   * https://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: https://api.jqueryui.com/puff-effect/
  14  //>>demos: https://jqueryui.com/effect/
  15  
  16  ( function( factory ) {
  17      "use strict";
  18  
  19      if ( typeof define === "function" && define.amd ) {
  20  
  21          // AMD. Register as an anonymous module.
  22          define( [
  23              "jquery",
  24              "../version",
  25              "../effect",
  26              "./effect-scale"
  27          ], factory );
  28      } else {
  29  
  30          // Browser globals
  31          factory( jQuery );
  32      }
  33  } )( function( $ ) {
  34  "use strict";
  35  
  36  return $.effects.define( "puff", "hide", function( options, done ) {
  37      var newOptions = $.extend( true, {}, options, {
  38          fade: true,
  39          percent: parseInt( options.percent, 10 ) || 150
  40      } );
  41  
  42      $.effects.effect.scale.call( this, newOptions, done );
  43  } );
  44  
  45  } );


Generated : Fri Nov 15 08:20:01 2024 Cross-referenced by PHPXref