jquery - How do I add a fade in? -


how add fade in this?

  $(document).ready(function(){   var myquotes = new array();    myquotes[0] = "all connected... ";    myquotes[1] = "the best way";    myquotes[2] = "your work discover";    myquotes[2] = "if success";    var myrandom = math.floor(math.random()*myquotes.length);    $('#quotehome').html(myquotes[myrandom]);       

});

you can chain .hide() .fadein(), this:

$('#quotehome').html(myquotes[myrandom]).hide().fadein(); 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -