I have the following jquery which will fade elements in and out in order :
var $zfader = jQuery.noConflict();
$zfader(document).ready(function(){
$zfader('.fadethis .fade');
setInterval(function(){
$zfader('.fadethis .fade').filter(':visible').fadeOut(2000,function(){
if($zfader(this).next('.fade').size()){
$zfader(this).next().fadeIn(1000);
}
else{
$zfader('.fadethis .fade').eq(0).fadeIn(1000);
}
});
},10000);
});
html :
<div class="container fadethis">
<div class="fade">number one</div>
<div class="fade" style="display:none">number two</div>
</div>
The problem is I do not want to use the display:none... I was thinking setting a position:absolute on .fade so they are all 'on top' of each other and acheiving the same effect with opacity? Secondly, I want to ensure if JavaScript is off that only the first shows...