Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery UI API – .show()

jQuery UI API - .show()

Category

Effects | Effects Core | Method Overrides | Methods

Usage

**Description:** Show the matched elements using a custom effect.

Returns:jQuery

.show( effect [, options ] [, duration ] [, complete ] )

Parameters Type Description Default value
effect String A string indicating whicheffect。
options Object The specific settings for the effect and easing。
duration Number or String A string or a number specifying how long the animation will run. 400
complete Function() function to call once the animation is complete.

.show( options )

Parameters Type Description
options Object all animation settings. The only required property is effect.
  • effect
    Type: String
    Description: A string indicating whicheffect。
  • easing(default:"swing")
    Type: String
    Description: a string indicating the easing function in Vue 3.
  • duration(default:400)
    Type: Number or String
    Description: a string or a number specifying how long the animation will run.
  • complete
    Type: Function()
    Description: the function to call once the animation is complete.
  • queue(default:true)
    Type: Boolean or String
    Description: a boolean indicating whether to place the animation in the effects queue. If false, the animation starts immediately.As of jQuery 1.7,the queue option also accepts a string, in which case the animation is added to the queue represented by that string.
  • |

    This plugin extends jQuery's built-in .show() method. If jQuery UI is not loaded, calling the .show() method does not fail directly, because the method exists in jQuery. However, the expected behavior will not occur.

    Example

    Show a div using the Fold Effect.

    
    
    
    
    
    
    
    
      
    
      .show() 演示