Просто модификация кода Ювала, чтобы заставить работать «два за раз»:
$(document).ready(function(){
//hide all the list items
$("ul li").hide();
//call the function initially
show_list_item();
});
function show_list_item(){
//fade in the first hidden item. When done, run the following function
$("ul li:hidden:first").fadeIn("slow", function(){
//if there are no more hidden list items (all were shown), hide them all
if($("ul li:hidden").length == 0){
$("ul li").hide();
}
});
$("ul li:hidden:first").fadeIn("slow", function(){
//if there are no more hidden list items (all were shown), hide them all
if($("ul li:hidden").length == 0){
$("ul li").hide();
}
//call this function again - this will run in a continuous loop
show_list_item();
});
}