fadeTo
changes opacity
property of an element, you should use opacity
instead of the visibility
or set the display
property of the element to none
and use fadeIn
method.
Also note that css
doesn't accept 3 parameters.
.menu { display: none }
$(document).ready(function() {
$('#start').click(function() {
$(this).fadeOut(1000, function() {
$('body').css('background-color','#999');
$('.menu').fadeIn('slow');
});
});
});
However, if you want to change the visibility
property, you can use css
method:
$('.menu').css('visibility', 'visible');