Team:ETH Zurich/Templates/Header

From 2011.igem.org

(Difference between revisions)
Line 35: Line 35:
obj.parent().stop(true).animate({ backgroundColor: colors[currSection] }, 500);
obj.parent().stop(true).animate({ backgroundColor: colors[currSection] }, 500);
obj.stop(true).animate({color: 'white'}, 500);
obj.stop(true).animate({color: 'white'}, 500);
-
}
 
$('#headpic').stop(true).delay(200).animate({ backgroundColor: colors[currSection]}, 500);
$('#headpic').stop(true).delay(200).animate({ backgroundColor: colors[currSection]}, 500);
$('.'+currSection).stop(true).delay(400).fadeIn(500);
$('.'+currSection).stop(true).delay(400).fadeIn(500);
 +
}
 +
}
}
}
}

Revision as of 23:34, 10 August 2011