Don't fade page in on scroll
This commit is contained in:
parent
c40c36af37
commit
c62eb5b49c
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
<style>
|
<style>
|
||||||
#spaceTakerUpper {
|
#spaceTakerUpper {
|
||||||
height: 105vh;
|
height: 90vh;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
@ -320,8 +320,8 @@
|
|||||||
var p = ((wheight - ypos) / wheight); //calulate ratio of scroll
|
var p = ((wheight - ypos) / wheight); //calulate ratio of scroll
|
||||||
// x.innerHTML = " " + String(parseInt(p * 100)); //display it
|
// x.innerHTML = " " + String(parseInt(p * 100)); //display it
|
||||||
var rgb = Math.floor(Math.abs(1 - p) * 255); //set the color
|
var rgb = Math.floor(Math.abs(1 - p) * 255); //set the color
|
||||||
var colorString = "rgb(" + rgb + "," + rgb + "," + rgb + ")";
|
// var colorString = "rgb(" + rgb + "," + rgb + "," + rgb + ")";
|
||||||
document.body.style.backgroundColor = colorString;
|
// document.body.style.backgroundColor = colorString;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user