jquery - Making DIV appear smoothly with fadeIn -
so i've got 2 divs linked (graphically). want these separate on period of time. of now, bounce out in matter of millisecond.
jsfiddle: http://jsfiddle.net/447th/
$(document).ready(function(){ $("article").fadein('slow', function(){ $('.segment1').fadein(3000); }); });
if take @ jsfiddle, i'm sure able figure out mean if description vague. thank in advance!
instead of using fadein use maxheight technique.
js:
// javascript document $(document).ready(function () { $('article').animate({maxheight:999},3000); settimeout(function(){ $('.segment1').animate({opacity:1},1000, function(){ //do after segment revealed }); }, 1000); });
css:
article{ ... display:block; ... max-height: 0; ... }
Comments
Post a Comment