Home/Jquery/show() Effect in Jquery

show() Effect in Jquery


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.



[duration ] [easing ] [callback/complete ] )

Ex :

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).
CallbackA function to call once the animation is complete.



After clicking the “Click to Show” button, the “divpanelBox” will show immediately without any animation.


Leave a Reply