|
27 | 27 | flex-grow: 1; |
28 | 28 | z-index: 2; |
29 | 29 | line-height: 1.18; |
30 | | - background-image: radial-gradient(circle at 50% 50%, oklch(0.34 0.08 192.2 / 0.59) 0%, oklch(0.24 0.07 240.07 / 0.61) 400px, oklch(0.11 0 0) 1500px); |
31 | | - background-image: radial-gradient(circle at 50% 50%, oklch(0.15 0 0) 0%, oklch(0.23 0.06 239.71 / 0.59) 600px, oklch(0.38 0.09 218.29) 1500px); |
32 | 30 | align-content: center; |
33 | | - transition: background 1000ms; |
| 31 | + |
| 32 | + &:before { |
| 33 | + position: absolute; |
| 34 | + width: 100%; |
| 35 | + content: ''; |
| 36 | + top: 0; |
| 37 | + left: 0; |
| 38 | + height: 100%; |
| 39 | + opacity: 0; |
| 40 | + transition: opacity 3s ease-in-out; |
| 41 | + background-image: radial-gradient(circle at 50% 50%, oklch(0 0 0) 0%, oklch(0.32 0.08 228.42 / 0.66) 600px, oklch(0 0 0) 1200px); |
| 42 | + pointer-events: none; |
| 43 | + } |
| 44 | + |
| 45 | + * { |
| 46 | + position: relative; |
| 47 | + z-index: 2; |
| 48 | + opacity: 0; |
| 49 | + transition: opacity 1s ease-in-out; |
| 50 | + } |
34 | 51 | } |
35 | 52 |
|
36 | 53 |
|
|
71 | 88 | transform-origin: 50% 50%; |
72 | 89 | transform-style: preserve-3d; |
73 | 90 | animation-name: masthead; |
74 | | - transition: filter 500ms ease-in-out, opacity 3000ms ease-in-out, transform 6000ms ease-in-out; |
| 91 | + transition: filter 500ms ease-in-out, opacity 3000ms ease-in-out, transform 3000ms ease-in-out; |
75 | 92 | opacity: 0; |
76 | 93 | animation-duration: 15s; |
77 | 94 | animation-fill-mode: both; |
78 | 95 | filter: blur(0px); |
79 | 96 | animation-timing-function: linear; |
80 | 97 | animation-iteration-count: infinite; |
81 | | - transform: rotateX(10deg) rotateZ(0deg) rotateY(0deg) translateY(0%) translateX(0%) translateZ(0px); |
| 98 | + transform: rotateX(30deg) rotateZ(0deg) rotateY(0deg) translateY(0%) translateX(0%) translateZ(0px); |
82 | 99 | } |
83 | 100 |
|
84 | 101 | &.animate{ |
85 | | - .content { |
86 | | - background-image: radial-gradient(circle at 50% 50%, oklch(0.34 0.08 192.2 / 0.59) 0%, oklch(0.24 0.07 240.07 / 0.61) 400px, oklch(0.11 0 0) 1500px); |
| 102 | + content:before { |
| 103 | + opacity: 1; |
87 | 104 | } |
88 | 105 |
|
89 | 106 | &:before { |
90 | 107 | opacity: 0.03; |
91 | 108 | filter: blur(3px); |
92 | | - transform: rotateX(47deg) rotateZ(0deg) rotateY(0deg) translateY(-14%) translateX(0%) translateZ(370px); |
| 109 | + transform: rotateX(30deg) rotateZ(0deg) rotateY(0deg) translateY(-7%) translateX(0%) translateZ(0px); |
| 110 | + } |
| 111 | + |
| 112 | + * { |
| 113 | + opacity: 1; |
93 | 114 | } |
94 | 115 | } |
95 | 116 |
|
|
0 commit comments