Skip to content

Write HTML. Render video. Built for agents.

fix(registry): fix rendering artifacts in parallax-zoom/unzoom demos

Miguel Ángel15e92e229989
diff --git a/registry/components/parallax-unzoom/demo.html b/registry/components/parallax-unzoom/demo.html
index d678c66541..67259a8e3f 100644
--- a/registry/components/parallax-unzoom/demo.html
+++ b/registry/components/parallax-unzoom/demo.html
@@ -41,7 +41,7 @@
display: grid;
grid-template-columns: repeat(5, 240px);
grid-template-rows: repeat(3, 320px);
- gap: 40px;
+ gap: 24px;
}
.parallax-unzoom-card {
@@ -148,11 +148,10 @@
.parallax-unzoom-grid {
--pu-progress: 0;
- --pu-focus-scale: 8;
+ --pu-focus-scale: 9;
--pu-sibling-push: 900px;
- --pu-sibling-fade: 1;
+ --pu-sibling-fade: 0;
position: relative;
- transform-style: preserve-3d;
}
.parallax-unzoom-card {
@@ -298,6 +297,18 @@
0.5,
);
+ tl.fromTo(
+ ".parallax-unzoom-card:not([data-pu-focus='true'])",
+ { opacity: 0 },
+ {
+ opacity: 1,
+ duration: 1.5,
+ ease: "power2.out",
+ stagger: { each: 0.02, from: "center" },
+ },
+ 2.0,
+ );
+
tl.to(
".focus-label",
{
diff --git a/registry/components/parallax-unzoom/parallax-unzoom.html b/registry/components/parallax-unzoom/parallax-unzoom.html
index f4a1db62a9..b613aad8f7 100644
--- a/registry/components/parallax-unzoom/parallax-unzoom.html
+++ b/registry/components/parallax-unzoom/parallax-unzoom.html
@@ -26,7 +26,6 @@
--pu-sibling-push: 900px;
--pu-sibling-fade: 1;
position: relative;
- transform-style: preserve-3d;
}
.parallax-unzoom-card {
diff --git a/registry/components/parallax-zoom/demo.html b/registry/components/parallax-zoom/demo.html
index 2beb61cf77..eba8f8d9df 100644
--- a/registry/components/parallax-zoom/demo.html
+++ b/registry/components/parallax-zoom/demo.html
@@ -41,7 +41,7 @@
display: grid;
grid-template-columns: repeat(5, 240px);
grid-template-rows: repeat(3, 320px);
- gap: 40px;
+ gap: 24px;
}
.parallax-zoom-card {
@@ -149,11 +149,10 @@
.parallax-zoom-grid {
--pz-progress: 0;
- --pz-focus-scale: 8;
+ --pz-focus-scale: 9;
--pz-sibling-push: 900px;
--pz-sibling-fade: 1;
position: relative;
- transform-style: preserve-3d;
}
.parallax-zoom-card {
diff --git a/registry/components/parallax-zoom/parallax-zoom.html b/registry/components/parallax-zoom/parallax-zoom.html
index e0ac9779a6..64eea25eee 100644
--- a/registry/components/parallax-zoom/parallax-zoom.html
+++ b/registry/components/parallax-zoom/parallax-zoom.html
@@ -27,7 +27,6 @@
--pz-sibling-push: 900px;
--pz-sibling-fade: 1;
position: relative;
- transform-style: preserve-3d;
}
.parallax-zoom-card {