javascript - jQuery fade in new wrapper after old one faded -
i have #wrapper
3 elements. fadein
/slidetoggle
them fade out whole screen. then, once #wrapper/whole
screen has faded out i'm trying fadein
new picture.
for, reason last fadein
of #baby-grand
isn't working. idea i'm doing wrong?
here's script:
$(document).ready(function() { $("#paul-bedal").hide(); $("#is-amidst").hide(); $("#paul-picture").hide(); $("#baby-grand").hide(); $(window).load(function() { $("#paul-bedal").fadein(3000, function() { $("#is-amidst").slidedown(4000, function() { $("#paul-picture").fadein(3500, function() { $("#wrapper").fadeout(5000, function() { $("#baby-grand").fadein(3500); }); }); }); }); }); });
css:
body { min-width:960px; max-width:1200px; margin-left:auto; margin-right:auto; } #wrapper { min-width:960px; max-width:1200px; text-align:center; margin-left:auto; margin-right:auto; } #paul-bedal { height:150px; width:650px; margin-top:150px; margin-left:auto; margin-right:auto; position:relative; font-size:95px; color:#e3e3e3; text-shadow:5px 5px 5px #f6f6f6; } #is-amidst { height:100px; width:650px; margin-top:0px; margin-left:auto; margin-right:auto; position:relative; font-size:55px; color:#e3e3e3; font-style:italic; text-shadow:5px 5px 5px #f6f6f6; } #paul-picture { background-image:url(/images/paul-bedal.png); background-repeat:no-repeat; width:250px; height:500px; float:right; position:absolute; margin-right:50px; margin-top:-100px; } #baby-grand { background-image:url(/images/baby-grand-piano.png); width:100%; margin-top:100px; margin-left:auto; margin-right:auto; position:relative; text-align:center; } <div id="wrapper"> <div id="paul-picture"></div> <div id="paul-bedal"> paul bedal </div> <div id="is-amidst"> ~is amidst right now... </div> </div> <div id="baby-grand"></div>
also, note #baby-grand
not wrapped inside #wrapper
, it's pretty simple maintenance page. but, last #baby-grand
fade in isn't working in jquery.
the reason empty , doesn't have height. infact fades in there nothing display! try give height via css see if works or not.
Comments
Post a Comment