JqueryUI: Effects – Effect

Syntax

.effect( effect [, options ] [, duration ] [, complete ] )
ParameterTypeDescription
effectStringA string indicating which effect to use for the transition.
optionsObjectAdditionally, each effect has its own set of options that can be specified common across multiple effects described in the table jQueryUI Effects.
duration Number or StringThis is of type Number or String and determines how long the animation will run. Its default value is 400.
completeFuction()A function to call once the animation is complete called once per matched element.

OR

.effect( options )
ParameterTypeDescription
optionsObjectAll animation settings. The only required property is effect. Possible values are:
effect − A string indicating which effect to use for the transition.
easing − A string indicating which easing function to use for the transition. Its default value is swing.
complete − This is a callback method called for each element when the effect is complete for this element.
duration − A string or number determining how long the animation will run. Its default value is 400.
queue − This is of type String/Boolean indicating whether to place the animation in the effects queue.

Leave a Reply

Your email address will not be published. Required fields are marked *