Something like this would probably perform best:   var target = $('#target')[0]; var highlight = $('#highlight')[0]; var timeline = new TimelineMax({paused:true}); timeline.call(addClass, [highlight, "on"], null, 1); timeline.call(removeClass, [highlight, "on"], null, 1); timeline.play(); function addClass(element, cls) { element.className += " " + cls; } function removeClass(element, cls) { element.className = element.className.split(cls).join(""); }   The slight glitch you we