Skip to content

Commit ba38e63

Browse files
committed
Format code
1 parent 865dc61 commit ba38e63

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/main/resources/scss/pages/_home.scss

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
}
1212
}
1313

14+
@property --rotation {
15+
syntax: "<angle>";
16+
initial-value: 0deg;
17+
inherits: false;
18+
}
19+
1420
.app-home__side-by-side {
1521
position: relative;
1622
display: grid;
@@ -99,17 +105,16 @@
99105
display: inline-block;
100106
position: relative;
101107
width: 100%;
102-
margin: -10%;
103108
aspect-ratio: 1;
104109
backdrop-filter: invert(2%) blur(100px);
105110
mask-image: repeating-conic-gradient(
106-
from 90deg,
111+
from var(--rotation),
107112
var(--background) 0deg,
108113
transparent 20deg
109114
);
110115
z-index: -1;
111116
opacity: 0.85;
112-
flex: 1;
117+
113118
@media (prefers-reduced-motion: no-preference) {
114119
animation: sunburst-rotation 100s infinite linear;
115120
}
@@ -118,7 +123,7 @@
118123

119124
@keyframes sunburst-rotation {
120125
to {
121-
transform: rotate(360deg);
126+
--rotation: 360deg;
122127
}
123128
}
124129

0 commit comments

Comments
 (0)