Home › Forums › JavaScript › jQuery opacity help › Re: jQuery opacity help
August 25, 2009 at 8:18 pm
#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);
$(‘#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.