I am just learning JQUERY and I have been playing around with delay() I wrote a fiddle to show you... What I am trying to do is when a button is clicked, change the background-c
You can use delay with queue here
$(".animation").css("background","blue").delay(700) .queue(function() { $(this).css("background", "red").dequeue(); });
Wrap above snippet inside click handler.