How can I add a class to a div, wait a second, remove the class, then add another?
$(".bauble_01").toggleClass("sway-left").delay(1000).toggleClass("sway-right");
I was hoping the above would add "sway-left", wait a second, then remove "sway-left" and add "sway-right" but it does it at the same time... the delay doesn't seem to work?
What am I doing wrong?