Description:
Jquery show() method used to display(make visible)ย matched element.ย The matched/selected elements will be showย immediately, without anyย animation. If we applyย duration, plain object or callback function thenย .show()
becomes an animation method. Itย animates the height, widthย and opacity of the selected/matched elements simultaneously.
Syntax
.show( Ex :
After clicking the “Click to Show” button, the “divpanelBox” will showย immediately without any animation.
Duration/speed
ย It specifies the speed of the fadein. The valuse may be slow, fast and milliseconds. (default value: 400).ย Durationย are given in milliseconds and higher values indicate slower animations, not faster ones.
Easing
ย It specifies the easing function to be used for transition (default value: swing).
Callback
A function to call once the animation is complete.
Example:
Output:
Leave A Comment