I try to fadeOut a div. It works with hide(), but not with fadeOut()
mobileLabnavhideTimer = window.setTimeout(function(){
开发者_StackOverflow $('#labStageNavContainer').hide();
},
4000);
The div is in a table td. Is this a problem?
It seems to be working with fadeOut(), try this demo to see if that's what you are looking for.
Code from Demo:
$(document).ready(function(){
window.setTimeout(function(){
$('#labStageNavContainer').fadeOut();
},
4000);
});
$('#div').fadeout('slow', function(){ //do whatever here afer fades out //can change 'slow' to time in milliseconds 5000 would be 5 seconds });
I think that's what your trying to do their is also .delay()
精彩评论