_JQ.jqToggleClass🔗 jQueryUI ToggleClass effect

Constructor: [selector [className [switch [duration [easing [complete]]]]] | [switch] options]]

selector – the jQuery/CSS selector for which to toggle the class

className – one or more class names (space separated) to be toggled for each element in the matched set

switch – a boolean value to determine whether the class should be added or removed

duration – number or string (default: 400) determining how long the animation will run

easing – a string (default: 'swing') indicating which easing function to use for the transition

complete – a function (no default) to call once the animation is complete, called once per matched element

options – all animation settings (all optional)

Public Fields:

Selector – the jQuery/CSS selector from which to remove the class

ClassName – one or more class names (space separated) to be toggled for each element in the matched set

switch – a boolean value to determine whether the class should be added or removed

Duration – number or string (default: 400) determining how long the animation will run

Easing – a string (default: 'swing') indicating which easing function to use for the transition

Complete – a function (no default) to call once the animation is complete, called once per matched element

Options – all animation settings (all optional)

Relevant Sample Pages:

Controls used on this page: Dyalog: Tabs Base HTML: style