Reputation: 12538
I am trying to have the .status-bar
appear %100 for a set time interval and then start to fade away when the time interval expires. The problem I am having is, right now as soon as the code below executes the status bar appears and starts fading away instantly (please note that the code below is part of a bigger click function).
I was wondering if someone can help me identify what I need to do to accomplish this.
setTimeout(function(){
$(".status-bar").show();
$(".status-bar").fadeOut(5000, function () {
});
}, 0);
Many thanks in advance!
Upvotes: 0
Views: 39