Don't fade page in on scroll

This commit is contained in:
Chuck Dries 2017-03-20 04:54:51 -07:00
parent c40c36af37
commit c62eb5b49c

View File

@ -20,7 +20,7 @@
<style>
#spaceTakerUpper {
height: 105vh;
height: 90vh;
}
</style>
</head>
@ -320,8 +320,8 @@
var p = ((wheight - ypos) / wheight); //calulate ratio of scroll
// x.innerHTML = " " + String(parseInt(p * 100)); //display it
var rgb = Math.floor(Math.abs(1 - p) * 255); //set the color
var colorString = "rgb(" + rgb + "," + rgb + "," + rgb + ")";
document.body.style.backgroundColor = colorString;
// var colorString = "rgb(" + rgb + "," + rgb + "," + rgb + ")";
// document.body.style.backgroundColor = colorString;
}