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!

demo

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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -