Given an array of class class names, this will cycle between them each time
it is called.
Eg, assume list is: [ a, b, c ]
If el already has the class a, the first time it is called, class a
is removed, and b added. The next time b is swapped for c. Once again,
c will swap with a and so on.
If el is undefined or null, function silently returns.
Given an array of class class names, this will cycle between them each time it is called.
Eg, assume
listis: [a,b,c]If
elalready has the classa, the first time it is called, classais removed, andbadded. The next timebis swapped forc. Once again,cwill swap withaand so on.If
elis undefined or null, function silently returns.