Team:Calgary Entrepreneurial/Sandbox

From 2013.igem.org

(Difference between revisions)
Line 363: Line 363:
var fixadent = $("#maincontent"),
var fixadent = $("#maincontent"),
-
pos = fixadent.offset();
+
pos = fixadent.offset(),
 +
white = $('#whiteheader');
$(window).scroll(function(){
$(window).scroll(function(){
if($(this).scrollTop() > pos.top){
if($(this).scrollTop() > pos.top){
-
$('#whiteheader').css('display', 'block');
+
white.fadeIn(300,function(){
 +
white.css('display', 'block');
 +
});
}
}
else{
else{
-
$('#whiteheader').css('display', 'none');
+
white.fadeOut(300,function(){
 +
white.css('display', 'none');
 +
});
}
}

Revision as of 01:19, 22 September 2013

Paragraph in black text

Paragraph text block for testing purposes.