Update homepage messaging and carousel performance

This commit is contained in:
Mohamed Boudra
2026-06-01 16:30:17 +07:00
parent d406c29e16
commit a807eb0eb2
2 changed files with 235 additions and 9 deletions
+23 -1
View File
@@ -20,9 +20,30 @@
.social-proof-marquee {
margin-inline: calc(50% - 50vw);
mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
overflow-x: clip;
padding-inline: max(1.5rem, calc((100vw - 80rem) / 2));
position: relative;
}
.social-proof-marquee::before,
.social-proof-marquee::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
width: max(4rem, 8vw);
z-index: 1;
pointer-events: none;
}
.social-proof-marquee::before {
left: 0;
background: linear-gradient(to right, var(--color-background), transparent);
}
.social-proof-marquee::after {
right: 0;
background: linear-gradient(to left, var(--color-background), transparent);
}
.social-proof-row {
@@ -34,6 +55,7 @@
display: flex;
width: max-content;
animation: social-proof-scroll 46s linear infinite;
will-change: transform;
}
.social-proof-track-reverse {