Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jQuery opacity help Re: jQuery opacity help

#62713
von
Member

I believe if you specify timing it might fix things. Add ", 0" after you animate selector.

Code:
$(document).ready(function(){
$(‘#nav span’).animate({ “opacity” : 0 }, 0);

It tells the animate to occur immediately instead of whatever the default timing is. It seemed to fix my little test I built to reproduce the behavior, but I didn’t have any other scripts on the page, so it might still be something else on your page that is hosing things up.