Skip to content

Commit f0b0b97

Browse files
fix(registry): edge-to-edge grid eliminates background bleed
Cards 360×340 with 30px gap = exactly 1920×1080. No body background visible at any frame. Focus scale drops from 9 to 6 (360×6 = 2160, still overshoots viewport by 240px). Co-authored-by: Kanyini <onebenson@gmail.com>
1 parent 15e92e2 commit f0b0b97

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

registry/components/parallax-unzoom/demo.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939

4040
.parallax-unzoom-grid {
4141
display: grid;
42-
grid-template-columns: repeat(5, 240px);
43-
grid-template-rows: repeat(3, 320px);
44-
gap: 24px;
42+
grid-template-columns: repeat(5, 360px);
43+
grid-template-rows: repeat(3, 340px);
44+
gap: 30px;
4545
}
4646

4747
.parallax-unzoom-card {
@@ -148,7 +148,7 @@
148148

149149
.parallax-unzoom-grid {
150150
--pu-progress: 0;
151-
--pu-focus-scale: 9;
151+
--pu-focus-scale: 6;
152152
--pu-sibling-push: 900px;
153153
--pu-sibling-fade: 0;
154154
position: relative;

registry/components/parallax-zoom/demo.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939

4040
.parallax-zoom-grid {
4141
display: grid;
42-
grid-template-columns: repeat(5, 240px);
43-
grid-template-rows: repeat(3, 320px);
44-
gap: 24px;
42+
grid-template-columns: repeat(5, 360px);
43+
grid-template-rows: repeat(3, 340px);
44+
gap: 30px;
4545
}
4646

4747
.parallax-zoom-card {
@@ -149,7 +149,7 @@
149149

150150
.parallax-zoom-grid {
151151
--pz-progress: 0;
152-
--pz-focus-scale: 9;
152+
--pz-focus-scale: 6;
153153
--pz-sibling-push: 900px;
154154
--pz-sibling-fade: 1;
155155
position: relative;

0 commit comments

Comments
 (0)