moved screen effects to divs a layer above to fix a scrolling issue

This commit is contained in:
neko
2021-04-09 21:17:00 +02:00
parent dd9c4b59dc
commit 734663c393
6 changed files with 30 additions and 22 deletions

View File

@@ -140,12 +140,14 @@ http://aleclownes.com/2017/02/01/crt-display.html
}
}
.crt::after {
.crt-blur {
content: " ";
display: block;
position: absolute;
top: 0;
left: 0;
top: 141px;
left: 117px;
width: 768px;
height: 584px;
bottom: auto;
right: auto;
background: rgba(18, 16, 16, 0.1);
@@ -153,16 +155,16 @@ http://aleclownes.com/2017/02/01/crt-display.html
z-index: 2;
pointer-events: none;
animation: flicker 3s infinite;
width: 100%;
height: 100%;
}
.crt-flicker {
content: " ";
display: block;
position: absolute;
top: 0;
left: 0;
top: 141px;
left: 117px;
width: 768px;
height: 584px;
bottom: auto;
right: auto;
background: rgba(18, 16, 16, 0.1);
@@ -170,24 +172,22 @@ http://aleclownes.com/2017/02/01/crt-display.html
z-index: 2;
pointer-events: none;
animation: flicker 3s infinite;
width: inherit;
height: inherit;
}
.crt::before {
.crt-scanlines {
content: " ";
display: block;
position: absolute;
top: auto;
left: auto;
top: 141px;
left: 117px;
width: 768px;
height: 584px;
bottom: auto;
right: auto;
z-index: 2;
pointer-events: none;
background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
background-size: 100% 2px, 3px 100%;
width: inherit;
height: inherit;
}
.crt {