I generally avoid using css for initial hiding because I want users
who don't have JS or don't have it enabled to still have an
opportunity to read the content. With display:none and JS off / CSS
on, they wouldn't have that opportunity.
--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On May 28, 2009, at 12:02 PM, GaVrA wrote:
Probably better to use css for initial hiding. Something like this:
<div id="test" style="display:none"></div>
$(function(){
$('#test').fadeIn();
});
On May 28, 4:04 pm, Karl Swedberg <k...@englishrules.com> wrote:
On May 27, 2009, at 10:51 PM, mediumgrade wrote:
Simply question:
I want to have a DIV start by being invisible, then fade in but I am
not sure how to start in such a way that jQuery can make it fade in.
Any help?
Something like this?
$('div').hide().fadeIn()
(make the selector more precise to suit your needs)
--Karl
____________
Karl Swedbergwww.englishrules.comwww.learningjquery.com