Skip to content

Commit 238796b

Browse files
authored
Website Update
1 parent bb0787a commit 238796b

1 file changed

Lines changed: 21 additions & 3 deletions

File tree

docs/assets/css/style.css

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ body.page-home {
8484
}
8585

8686
.site-atmosphere {
87-
position: fixed;
87+
position: absolute;
8888
inset: 0;
8989
z-index: 0;
9090
pointer-events: none;
@@ -93,6 +93,23 @@ body.page-home {
9393
}
9494

9595
.site-atmosphere__layer {
96+
position: sticky;
97+
top: 0;
98+
display: block;
99+
width: 100%;
100+
height: 100vh;
101+
height: 100svh;
102+
opacity: var(--site-atmosphere-opacity);
103+
will-change: opacity;
104+
overflow: hidden;
105+
isolation: isolate;
106+
transform: translateZ(0);
107+
-webkit-transform: translateZ(0);
108+
backface-visibility: hidden;
109+
}
110+
111+
.site-atmosphere__layer::before {
112+
content: "";
96113
position: absolute;
97114
top: 0;
98115
bottom: 0;
@@ -103,8 +120,9 @@ body.page-home {
103120
radial-gradient(62% 50% at 66% 30%, rgba(82, 104, 255, 0.105) 0%, rgba(82, 104, 255, 0.074) 30%, rgba(82, 104, 255, 0.022) 54%, rgba(82, 104, 255, 0) 72%),
104121
radial-gradient(76% 60% at 52% 92%, rgba(255, 255, 255, 0.032) 0%, rgba(255, 255, 255, 0.014) 36%, rgba(255, 255, 255, 0) 66%),
105122
linear-gradient(180deg, rgba(6, 6, 8, 0.085) 0%, rgba(6, 6, 8, 0.032) 42%, rgba(6, 6, 8, 0.145) 100%);
106-
opacity: var(--site-atmosphere-opacity);
107-
will-change: opacity;
123+
transform: translateZ(0);
124+
-webkit-transform: translateZ(0);
125+
backface-visibility: hidden;
108126
}
109127

110128
body.no-scroll {

0 commit comments

Comments
 (0)