added the first space background : test

This commit is contained in:
rezayaghobi-dev
2026-10-19 22:58:18 +03:30
parent 56b728dc49
commit f74a3e8a11
2 changed files with 149 additions and 1 deletions

View File

@@ -68,6 +68,38 @@ body {
overflow-x: hidden;
}
/* ---------- space backdrop ---------- */
.space {
position: fixed;
inset: -5% -5% -5% -5%;
z-index: -1;
overflow: hidden;
pointer-events: none;
will-change: transform;
}
.space__star {
position: absolute;
left: 0;
top: 0;
border-radius: 50%;
background: #ffffff;
}
.space__nebula {
position: absolute;
border-radius: 50%;
filter: blur(80px);
will-change: transform, opacity;
}
@media (prefers-reduced-motion: reduce) {
.space {
display: none;
}
}
img,
svg {
max-width: 100%;