Just the first "else" not working. topColor div will expand from original 15 high to 150 high when scrolling down, but not shrink back to 15 high when I scroll near the top.
$(document).ready(function () {
$(window).scroll(function () {
if ($(this).scrollTop() > 20) {
$('#topColor').animate({
height: "150px"
});
} else {
$('#topColor').animate({
height: "15px"
});
}
if ($(this).scrollTop() > 300) {
$("#fixedMenuBar").fadeIn('slow', 'linear');
} else {
$("#fixedMenuBar").fadeOut('fast', 'linear');
}
});
});