Add and remove class in loop using jquery
setInterval(function(){ $('#topcontrol img').toggleClass('wiggle'); setTimeout(function(){ $('#topcontrol img').toggleClass('wiggle'); },500); },1000);