JQuery delay before fadeOut JQuery delay before fadeOut jquery jquery

JQuery delay before fadeOut


You can just write

$(".home_entry_txt").fadeIn(3000).delay(1000).fadeOut("slow");


Have you tried .delay()?something like:

$(".home_entry_txt").fadeIn().delay(200).queue(function(next) {$(".home_entry_txt").fadeOut("slow");});


try this

$(document).ready(function(){   ShowPostDiv(0);});function ShowPostDiv(divIndex){    $(".home_entry_txt").hide();    if(divIndex >= $(".rotate_hide").length)    {        divIndex = 0;    }    var divPostHtml = $(".rotate_hide:eq("+divIndex+")").html();    $(".home_entry_txt").html(divPostHtml);     $(".home_entry_txt").fadeIn(3000, function(){        setTimeout(function(){            $(".home_entry_txt").fadeOut("slow");        },4000);    });    divIndex++;}