Skip to content
Snippets Groups Projects
Commit a6fadc34 authored by derheap's avatar derheap
Browse files

Fix scrolling.

parent aadfbf7a
Branches
No related tags found
No related merge requests found
src/bg-eyecandy/css/img/01_FG_Pixels_still_debug.gif

18.6 KiB

src/bg-eyecandy/css/img/06_BG_Pixels_still_debug.gif

18.5 KiB

src/bg-eyecandy/css/img/RC3_vignette_debug.png

319 KiB

...@@ -21,7 +21,6 @@ body { ...@@ -21,7 +21,6 @@ body {
.rc3-bg-L01 { .rc3-bg-L01 {
background-image: url("img/01_FG_Pixels_still.gif"); background-image: url("img/01_FG_Pixels_still.gif");
background-position-y: -30%;
background-size: 100% auto; background-size: 100% auto;
background-repeat: repeat-y; background-repeat: repeat-y;
top: 0; top: 0;
...@@ -53,6 +52,7 @@ body { ...@@ -53,6 +52,7 @@ body {
.rc3-bg-L05-container { .rc3-bg-L05-container {
position: relative; position: relative;
background-image: url("img/RC3_vignette_debug.png");
} }
.rc3-bg-L05-collages > * > * { .rc3-bg-L05-collages > * > * {
......
...@@ -35,7 +35,9 @@ $gradient-yellowgreen: #b2ff7c; ...@@ -35,7 +35,9 @@ $gradient-yellowgreen: #b2ff7c;
// FG-Pixel // FG-Pixel
.rc3-bg-L01 { .rc3-bg-L01 {
background-image: url("img/01_FG_Pixels_still.gif"); background-image: url("img/01_FG_Pixels_still.gif");
background-position-y: -30%; //background-image: url("img/01_FG_Pixels_still_debug.gif");
//background-position-y: -30%;
background-size: 100% auto; background-size: 100% auto;
background-repeat: repeat-y; background-repeat: repeat-y;
top: 0; top: 0;
...@@ -69,6 +71,8 @@ $gradient-yellowgreen: #b2ff7c; ...@@ -69,6 +71,8 @@ $gradient-yellowgreen: #b2ff7c;
.rc3-bg-L05-container { .rc3-bg-L05-container {
position: relative; position: relative;
background-image: url("img/RC3_vignette_debug.png");
} }
.rc3-bg-L05-collages > * > * { .rc3-bg-L05-collages > * > * {
...@@ -118,6 +122,7 @@ $gradient-yellowgreen: #b2ff7c; ...@@ -118,6 +122,7 @@ $gradient-yellowgreen: #b2ff7c;
// BG-Pixel // BG-Pixel
.rc3-bg-L06 { .rc3-bg-L06 {
background-image: url("img/06_BG_Pixels_still.gif"); background-image: url("img/06_BG_Pixels_still.gif");
//background-image: url("img/06_BG_Pixels_still_debug.gif");
background-position-y: -30%; background-position-y: -30%;
background-size: 100% auto; background-size: 100% auto;
background-repeat: repeat-y; background-repeat: repeat-y;
......
...@@ -399,9 +399,9 @@ recorded will be open sourced and will be made avaialable to download.</p></sect ...@@ -399,9 +399,9 @@ recorded will be open sourced and will be made avaialable to download.</p></sect
if (debug) { if (debug) {
debug.innerText = window.scrollY +" / " + height + " / " + maxScroll + " / " + window.innerHeight; debug.innerText = window.scrollY +" / " + height + " / " + maxScroll + " / " + window.innerHeight;
} }
setTransform(layer01,1.2); setBgPosition(layer01,-1.2);
setTransform(layer05,0.8); setTransform(layer05,0.8);
setTransform(layer06,0.5); setBgPosition(layer06,0.5);
setTransform(layer10,-0.02); setTransform(layer10,-0.02);
// Move mask for header // Move mask for header
if (main) { if (main) {
...@@ -411,9 +411,6 @@ recorded will be open sourced and will be made avaialable to download.</p></sect ...@@ -411,9 +411,6 @@ recorded will be open sourced and will be made avaialable to download.</p></sect
} }
lastPos = window.scrollY; lastPos = window.scrollY;
if (window.scrollY > maxScroll) {
window.scrollTo(0,maxScroll);
}
window.requestAnimationFrame(step); window.requestAnimationFrame(step);
} }
window.requestAnimationFrame(step); window.requestAnimationFrame(step);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment