Don't fade page in on scroll
This commit is contained in:
parent
c40c36af37
commit
c62eb5b49c
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user