I have a bunch of thumbnails which I am loading with a style of visibility: hidden; so that they all maintain their correct layouts. Once the page is fully loaded I have a jquery function that fades them in. This worked when their style was set to display: none; but obviously the layout screwed up then. Any suggestions?
visibility: hidden;
display: none;
Heres the fade line:
$('.littleme').fadeIn('slow');
Add a few calls to the chain like this:
$('.littleme').css('visibility','visible').hide().fadeIn('slow');
This will change it to display:none for 1 frame before fading in, occupying the area again.
display:none
2.1m questions
2.1m answers
60 comments
57.0k users