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
delay only works for items in the queue (such as animations).
For anything else, use a regular old timer:
$("#change").click(function() { var $el = $(".animation"); $el.css("background", "blue"); setTimeout(function () { $el.css("background", "red"); }, 700); });