Switches from the class defined in the first argument to the class defined as second argument, using an optional transition.
Arguments:
remove | String | |
---|---|---|
The CSS class that will be removed. | ||
add | String | |
The CSS class that will be added. | ||
duration (Optional) | String, Number | |
A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000). |