Team:Calgary Entrepreneurial/Sandbox

From 2013.igem.org

(Difference between revisions)
Line 239: Line 239:
#whiteheader .logo{
#whiteheader .logo{
-
margin-left: 4.674%;
+
margin-left: 2%;
min-width: 151px;
min-width: 151px;
width: 14.326%;
width: 14.326%;
Line 368: Line 368:
$(window).scroll(function(){
$(window).scroll(function(){
 +
//fades in the white header when the white portion hits the top
if($(this).scrollTop() > pos.top){
if($(this).scrollTop() > pos.top){
-
white.fadeIn(300,function(){
+
white.fadeIn(250,function(){
white.css('display', 'block');
white.css('display', 'block');
});
});
}
}
 +
//fade out otherwise
else{
else{
-
white.fadeOut(300,function(){
+
white.fadeOut(250,function(){
white.css('display', 'none');
white.css('display', 'none');
});
});

Revision as of 01:48, 22 September 2013

Paragraph in black text

Paragraph text block for testing purposes.