effect fix

This commit is contained in:
neko 2020-01-25 20:43:15 +01:00
parent 5e70fd84bf
commit 4cb616dace
2 changed files with 56 additions and 34 deletions

View File

@ -3,8 +3,7 @@
{% include head.html %}
<body>
<div class="screen-image">
<div class="crt crt-flicker">
<div class="screen-content crt-shadow">
<div class="screen-content crt">
<style>
.meta {
font-size: .7rem;
@ -25,6 +24,5 @@
{% include footer.html %}
</div>
</div>
</div>
</body>
</html>

View File

@ -140,17 +140,42 @@ http://aleclownes.com/2017/02/01/crt-display.html
}
}
.crt-flicker {
.crt::after {
content: " ";
pointer-events: none;
animation: flicker 3s infinite;
display: block;
position: absolute;
top: 0;
left: 0;
bottom: auto;
right: auto;
background: rgba(18, 16, 16, 0.1);
opacity: 0;
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;
bottom: auto;
right: auto;
background: rgba(18, 16, 16, 0.1);
opacity: 0;
z-index: 2;
pointer-events: none;
animation: flicker 3s infinite;
width: 100%;
height: 100%;
}
.crt::before {
content: " ";
display: block;
@ -159,20 +184,19 @@ http://aleclownes.com/2017/02/01/crt-display.html
left: auto;
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: 640px;
height: 480px;
width: 100%;
height: 100%;
}
*/
.crt {
position: relative;
overflow: hidden;
animation: textShadow 5s infinite;
height: 100%;
width: 100%;
}
.crt-shadow {
animation: textShadow 5s infinite;
}