I want to fade out an element and all its child elements after a delay of a few seconds. but I haven't found a way to specify that an effect should start after a specified time delay.
setTimeout(function() { $('#foo').fadeOut(); }, 5000);
The 5000 is five seconds in milliseconds.
2.1m questions
2.1m answers
60 comments
57.0k users