WIP marquee and some refactoring

This commit is contained in:
Oleksandr 2025-12-17 20:13:00 +02:00
parent eca995ca2c
commit 2ca3604414
Signed by: Xanazf
GPG key ID: 821EEC32761AC17C
6 changed files with 406 additions and 127 deletions

View file

@ -29,17 +29,18 @@
position: relative;
display: flex;
width: 100%;
margin-block: var(--lg);
margin-block: var(--xl);
justify-content: space-between;
align-items: center;
scroll-snap-type: x mandatory;
}
.marquee-content {
width: 100%;
height: 100%;
overflow: hidden;
display: flex;
will-change: transform;
transform: translateX(0);
}
.marquee-item {
@ -53,7 +54,7 @@
gap: var(--md);
padding-inline: 0.5rem;
& > * {
&>* {
z-index: 11;
}
@ -98,7 +99,7 @@
flex-direction: column;
justify-content: center;
& > div {
&>div {
width: 2.5rem;
aspect-ratio: 1 / 1;
display: flex;
@ -112,7 +113,7 @@
&:hover {
cursor: pointer;
& > div {
&>div {
opacity: 0.9;
}
}
@ -146,7 +147,7 @@
.marquee-scroll-arrow {
height: unset;
& > div {
&>div {
background-color: #55555580;
border-radius: var(--radius-xs);
}

View file

@ -7,6 +7,8 @@ html {
font-weight: 400;
height: 100svh;
width: 100svw;
max-width: 100svw;
font-synthesis: none;
text-rendering: optimizeLegibility;