Merge remote-tracking branch 'refs/remotes/origin/main'
Before Width: | Height: | Size: 1.5 MiB After Width: | Height: | Size: 1.5 MiB |
After Width: | Height: | Size: 1.1 MiB |
After Width: | Height: | Size: 2.7 MiB |
After Width: | Height: | Size: 3.6 MiB |
After Width: | Height: | Size: 13 MiB |
After Width: | Height: | Size: 3.7 MiB |
After Width: | Height: | Size: 7.0 MiB |
@ -1,21 +1,205 @@
|
||||
::root{
|
||||
|
||||
}
|
||||
body{
|
||||
font-family: Times;
|
||||
body
|
||||
font-family: Bradley;
|
||||
src: url(/web/fonts/'Bradley.ttf') format('ttf');
|
||||
text-align:center;
|
||||
/* background-color: #000; */
|
||||
/* color: #ccc; */
|
||||
background-color: #000;
|
||||
color: #ccc
|
||||
max-width: 30rem;
|
||||
margin: 2rem auto;
|
||||
line-height: 1.3;
|
||||
letter-spacing: 0.1px;
|
||||
color: #53018e
|
||||
}
|
||||
img{
|
||||
max-width: 100%;
|
||||
}
|
||||
::selection{
|
||||
background-color: #53018e;
|
||||
background-color: #000;
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
body {
|
||||
background: #000;
|
||||
background: rgba(0, 0, 0, 1);
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
/* -------------------- Fog --------------------- */
|
||||
.fog{
|
||||
display: fixed;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
z-index: -2;
|
||||
}
|
||||
.fogwrapper {
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
-webkit-filter: blur(1px) grayscale(0.2) saturate(1.2) sepia(0.2);
|
||||
filter: blur(1px) grayscale(0.2) saturate(0.2) sepia(0.2);
|
||||
}
|
||||
#foglayer_01, #foglayer_02, #foglayer_03 {
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
width: 200%;
|
||||
}
|
||||
#foglayer_01 .image01, #foglayer_01 .image02,
|
||||
#foglayer_02 .image01, #foglayer_02 .image02,
|
||||
#foglayer_03 .image01, #foglayer_03 .image02 {
|
||||
float: left;
|
||||
height: 100%;
|
||||
width: 50%;
|
||||
}
|
||||
#foglayer_01 {
|
||||
-webkit-animation: foglayer_01_opacity 10s linear infinite, foglayer_moveme 15s linear infinite;
|
||||
-moz-animation: foglayer_01_opacity 10s linear infinite, foglayer_moveme 15s linear infinite;
|
||||
animation: foglayer_01_opacity 10s linear infinite, foglayer_moveme 15s linear infinite;
|
||||
}
|
||||
#foglayer_02, #foglayer_03 {
|
||||
-webkit-animation: foglayer_02_opacity 21s linear infinite, foglayer_moveme 13s linear infinite;
|
||||
-moz-animation: foglayer_02_opacity 21s linear infinite, foglayer_moveme 13s linear infinite;
|
||||
animation: foglayer_02_opacity 21s linear infinite, foglayer_moveme 13s linear infinite;
|
||||
}
|
||||
|
||||
/* ---------- Moving Fog ---------- */
|
||||
/*
|
||||
'size: cover' || 'size: 100%'; results remain the same
|
||||
'attachment: scroll' can be added or removed; results remain the same
|
||||
'attachment: fixed' causing unexpected results in Chrome
|
||||
'repeat-x' || 'no-repeat'; results remain the same
|
||||
*/
|
||||
#foglayer_01 .image01, #foglayer_01 .image02 {
|
||||
background: url("https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog1.png") center center/cover no-repeat transparent;
|
||||
}
|
||||
#foglayer_02 .image01, #foglayer_02 .image02,
|
||||
#foglayer_03 .image01, #foglayer_03 .image02{
|
||||
background: url("https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog2.png") center center/cover no-repeat transparent;
|
||||
}
|
||||
|
||||
/* ---------- Keyframe Layer 1 ---------- */
|
||||
@-webkit-keyframes foglayer_01_opacity {
|
||||
0% { opacity: .1; }
|
||||
22% { opacity: .5; }
|
||||
40% { opacity: .28; }
|
||||
58% { opacity: .4; }
|
||||
80% { opacity: .16; }
|
||||
100% { opacity: .1; }
|
||||
}
|
||||
@-moz-keyframes foglayer_01_opacity {
|
||||
0% { opacity: .1; }
|
||||
22% { opacity: .5; }
|
||||
40% { opacity: .28; }
|
||||
58% { opacity: .4; }
|
||||
80% { opacity: .16; }
|
||||
100% { opacity: .1; }
|
||||
}
|
||||
@-o-keyframes foglayer_01_opacity {
|
||||
0% { opacity: .1; }
|
||||
22% { opacity: .5; }
|
||||
40% { opacity: .28; }
|
||||
58% { opacity: .4; }
|
||||
80% { opacity: .16; }
|
||||
100% { opacity: .1; }
|
||||
}
|
||||
@keyframes foglayer_01_opacity {
|
||||
0% { opacity: .1; }
|
||||
22% { opacity: .5; }
|
||||
40% { opacity: .28; }
|
||||
58% { opacity: .4; }
|
||||
80% { opacity: .16; }
|
||||
100% { opacity: .1; }
|
||||
}
|
||||
/* ---------- Keyframe Layer 2 ---------- */
|
||||
@-webkit-keyframes foglayer_02_opacity {
|
||||
0% { opacity: .5; }
|
||||
25% { opacity: .2; }
|
||||
50% { opacity: .1; }
|
||||
80% { opacity: .3; }
|
||||
100% { opacity: .5; }
|
||||
}
|
||||
@-moz-keyframes foglayer_02_opacity {
|
||||
0% { opacity: .5; }
|
||||
25% { opacity: .2; }
|
||||
50% { opacity: .1; }
|
||||
80% { opacity: .3; }
|
||||
100% { opacity: .5; }
|
||||
}
|
||||
@-o-keyframes foglayer_02_opacity {
|
||||
0% { opacity: .5; }
|
||||
25% { opacity: .2; }
|
||||
50% { opacity: .1; }
|
||||
80% { opacity: .3; }
|
||||
100% { opacity: .5; }
|
||||
}
|
||||
@keyframes foglayer_02_opacity {
|
||||
0% { opacity: .5; }
|
||||
25% { opacity: .2; }
|
||||
50% { opacity: .1; }
|
||||
80% { opacity: .3; }
|
||||
100% { opacity: .5; }
|
||||
}
|
||||
/* ---------- Keyframe Layer 3 ---------- */
|
||||
@-webkit-keyframes foglayer_03_opacity {
|
||||
0% { opacity: .8 }
|
||||
27% { opacity: .2; }
|
||||
52% { opacity: .6; }
|
||||
68% { opacity: .3; }
|
||||
100% { opacity: .8; }
|
||||
}
|
||||
@-moz-keyframes foglayer_03_opacity {
|
||||
0% { opacity: .8 }
|
||||
27% { opacity: .2; }
|
||||
52% { opacity: .6; }
|
||||
68% { opacity: .3; }
|
||||
100% { opacity: .8; }
|
||||
}
|
||||
@-o-keyframes foglayer_03_opacity {
|
||||
0% { opacity: .8 }
|
||||
27% { opacity: .2; }
|
||||
52% { opacity: .6; }
|
||||
68% { opacity: .3; }
|
||||
100% { opacity: .8; }
|
||||
}
|
||||
@keyframes foglayer_03_opacity {
|
||||
0% { opacity: .8; }
|
||||
27% { opacity: .2; }
|
||||
52% { opacity: .6; }
|
||||
68% { opacity: .3; }
|
||||
100% { opacity: .8; }
|
||||
}
|
||||
/* ---------- Keyframe moveMe ---------- */
|
||||
@-webkit-keyframes foglayer_moveme {
|
||||
0% { left: 0; }
|
||||
100% { left: -100%; }
|
||||
}
|
||||
@-moz-keyframes foglayer_moveme {
|
||||
0% { left: 0; }
|
||||
100% { left: -100%; }
|
||||
}
|
||||
@-o-keyframes foglayer_moveme {
|
||||
0% { left: 0; }
|
||||
100% { left: -100%; }
|
||||
}
|
||||
@keyframes foglayer_moveme {
|
||||
0% { left: 0; }
|
||||
100% { left: -100%; }
|
||||
}
|
||||
|
||||
@media only screen
|
||||
and (min-width: 280px)
|
||||
and (max-width: 767px) {
|
||||
#foglayer_01 .image01, #foglayer_01 .image02,
|
||||
#foglayer_02 .image01, #foglayer_02 .image02,
|
||||
#foglayer_03 .image01, #foglayer_03 .image02 {
|
||||
width: 100%;
|
||||
}
|
||||
}
|