jQuery: slideUp() delay() then slideDown; not working
I'm trying to implement a very simple footer notification element to slide up for a moment, then slide back down. I'm using: $('button').click( function () { $('#message-box').slideUp('slow').delay(1500).slideDown('slow'); }); However, when you click the button, it delays for the 1500 ms then slides up and never slides down. http://jsfiddle.net/jrMH3/17/ What you actually want is this: $('#message-box').slideDown('slow').delay(1500).slideUp('slow'); You can test it here . Though it seems a bit backwards given your layout, .slideDown() is for showing an element, and .slideUp() is for hiding an