jquery - FadeIn WITHOUT .hide() function? -


i want make fadein effect don't want hide because screws margins when object literally hidden document. need ideally animate opacity 0, i'm having trouble getting work. ideas? thanks!

$(document).ready(function(){   $("#item").css("opacity", 0).delay(13000).fadein(2000);  }); 

as using opacity, should use fadeto method instead of fadein.

$("#item").css("opacity", 0).delay(13000).fadeto(2000, 1); 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -