Delay
HTML
<div id="test">test</div>
CSS
#test {
width: 100px;
height: 100px;
background: #ffb;
padding: 10px;
border: 2px solid #999;
}
JavaScript
$(function() {
$('#test').delay(2000).fadeOut();
});
<div id="test">test</div>
#test {
width: 100px;
height: 100px;
background: #ffb;
padding: 10px;
border: 2px solid #999;
}
$(function() {
$('#test').delay(2000).fadeOut();
});