|
11 | 11 | background-image: url("../../../public/assets/img/grain.png"), url("../../../public/assets/img/background-v3.jpg");
|
12 | 12 | background-blend-mode: overlay, normal;
|
13 | 13 | background-repeat: repeat, no-repeat;
|
14 |
| - background-size: 100px, cover; |
| 14 | + background-size: 50px, cover; |
15 | 15 |
|
16 | 16 | @media only screen and (min-width: 481px) {
|
17 | 17 | background-size: 100px, 200% 100%;
|
|
24 | 24 | background-image: url("../../../public/assets/img/grain-dark.png"), url("../../../public/assets/img/background-dark-v3.jpg");
|
25 | 25 | background-blend-mode: overlay, normal;
|
26 | 26 | background-repeat: repeat, no-repeat;
|
27 |
| - background-size: 100px, cover; |
| 27 | + background-size: 50px, cover; |
28 | 28 | }
|
29 | 29 | }
|
30 | 30 |
|
31 | 31 | .foreground {
|
32 | 32 | position: absolute;
|
33 |
| - top: 10vh; |
| 33 | + top: 0; |
34 | 34 | left: 0;
|
35 | 35 | width: 100vw;
|
36 |
| - height: 80vh; |
37 |
| - background-size: contain; |
| 36 | + height: 100vh; |
38 | 37 | background-repeat: no-repeat;
|
| 38 | +} |
39 | 39 |
|
40 |
| - animation-duration: 50s; |
41 |
| - |
| 40 | +.animated { |
| 41 | + animation-duration: 30s; |
42 | 42 | animation-fill-mode: both;
|
43 | 43 | animation-timing-function: linear;
|
| 44 | +} |
| 45 | + |
| 46 | +.clouds { |
| 47 | + background-image: url("../../../public/assets/img/layer1.svg"); |
| 48 | + background-position: top right; |
| 49 | + animation-name: offscreen; |
44 | 50 |
|
45 | 51 | @media (prefers-color-scheme: dark) {
|
46 | 52 | opacity: .1;
|
47 | 53 | }
|
48 | 54 | }
|
49 |
| -.foreground.layer1 { |
50 |
| - background-image: url("../../../public/assets/img/layer1.svg"); |
51 |
| - animation-name: slidein1; |
52 |
| -} |
53 |
| -.foreground.layer2 { |
| 55 | + |
| 56 | +.mountain { |
54 | 57 | background-image: url("../../../public/assets/img/layer2.svg");
|
55 |
| - animation-name: slidein2; |
| 58 | + background-position: bottom right; |
| 59 | + /*animation-name: offscreen;*/ |
| 60 | + |
| 61 | + @media (prefers-color-scheme: dark) { |
| 62 | + opacity: .15; |
| 63 | + } |
56 | 64 | }
|
57 |
| -.foreground.layer3 { |
| 65 | + |
| 66 | +.birds { |
58 | 67 | background-image: url("../../../public/assets/img/layer3.svg");
|
59 |
| - animation-name: slidein3; |
60 |
| -} |
61 |
| -@media only screen and (max-width: 480px) { |
62 |
| - .foreground { |
63 |
| - display: none |
| 68 | + animation-name: offscreen; |
| 69 | + border-color: pink; |
| 70 | + display: none; |
| 71 | + |
| 72 | + [data-features~="birds"] & { |
| 73 | + display: block; |
64 | 74 | }
|
65 | 75 | }
|
66 |
| -@keyframes slidein1 { |
67 |
| - from { |
68 |
| - transform: translateX(110vw); |
69 |
| - } |
70 | 76 |
|
71 |
| - to { |
72 |
| - transform: translateX(40vw); |
| 77 | +.stars { |
| 78 | + background-image: url("../../../public/assets/img/stars.svg"); |
| 79 | + background-position: top right; |
| 80 | + display: none; |
| 81 | + |
| 82 | + @media screen and (prefers-color-scheme: dark) { |
| 83 | + display: block; |
73 | 84 | }
|
74 | 85 | }
|
75 |
| -@keyframes slidein2 { |
76 |
| - from { |
77 |
| - transform: translateX(100vw); |
78 |
| - } |
79 | 86 |
|
80 |
| - to { |
81 |
| - transform: translateX(40vw); |
| 87 | +@media only screen and (max-width: 480px) { |
| 88 | + .foreground { |
| 89 | + display: none |
82 | 90 | }
|
83 | 91 | }
|
84 |
| -@keyframes slidein3 { |
| 92 | +@keyframes offscreen { |
85 | 93 | from {
|
86 |
| - transform: translateX(120vw); |
| 94 | + transform: translateX(100vw); |
87 | 95 | }
|
88 | 96 |
|
89 | 97 | to {
|
90 |
| - transform: translateX(40vw); |
| 98 | + transform: translateX(0vw); |
91 | 99 | }
|
92 | 100 | }
|
0 commit comments