Skip to content

Commit 618ac7f

Browse files
fix(registry): dark body background eliminates visible grid gaps
The #f6f6f4 off-white background was showing through the 30px grid gaps and behind translated cards during the zoom/unzoom transitions, creating visible white strips in the rendered video. Changed to #1a1a20 (near-black) so gaps read as intentional dark separators. Also added a .zoom-backdrop div behind the grid in the zoom demo that fades to the focus card's gold gradient during the transition, covering any gaps left by sibling cards translating off-screen. Co-authored-by: Kanyini <onebenson@gmail.com>
1 parent fa58903 commit 618ac7f

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

registry/components/parallax-unzoom/demo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
width: 1920px;
2424
height: 1080px;
2525
overflow: hidden;
26-
background: #f6f6f4;
26+
background: #1a1a20;
2727
font-family: "Inter", system-ui, sans-serif;
2828
}
2929

registry/components/parallax-zoom/demo.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
width: 1920px;
2424
height: 1080px;
2525
overflow: hidden;
26-
background: #f6f6f4;
26+
background: #1a1a20;
2727
font-family: "Inter", system-ui, sans-serif;
2828
}
2929

@@ -130,6 +130,14 @@
130130
color: rgba(26, 18, 8, 0.7);
131131
}
132132

133+
.zoom-backdrop {
134+
position: absolute;
135+
inset: 0;
136+
background: linear-gradient(135deg, #f5c93f, #d99a18);
137+
opacity: 0;
138+
z-index: 0;
139+
}
140+
133141
.hero-headline {
134142
position: absolute;
135143
top: 80px;
@@ -180,6 +188,7 @@
180188
data-start="0"
181189
>
182190
<div class="demo-canvas">
191+
<div class="zoom-backdrop"></div>
183192
<div class="hero-headline">Inspired by how people discover.</div>
184193

185194
<div class="parallax-zoom-grid">

0 commit comments

Comments
 (0)