Revert "feat(registry): the video-primitive moves, documented and customisable (#3090)" (#3162)

This reverts commit 3b53bfd2f7.
This commit is contained in:
Miguel Ángel
2026-08-10 14:47:47 -04:00
committed by GitHub
parent 3b53bfd2f7
commit c86d4013f5
2328 changed files with 5906 additions and 458525 deletions
-126
View File
@@ -1,126 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=1920, height=1080" />
<title>Badge Pop - Demo</title>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js"></script>
<style>
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
width: 1920px;
height: 1080px;
overflow: hidden;
}
#demo {
width: 1920px;
height: 1080px;
display: grid;
place-items: center;
background: #f4f4f5;
font-family: Inter, system-ui, sans-serif;
}
.demo-frame {
display: grid;
place-items: center;
padding: 56px;
transform: scale(
3
); /* ponytail: scale wrapper (hugs content — no min-width inflation), not GSAP targets */
transform-origin: center;
}
.hf-transition-badge-pop {
position: relative;
display: inline-grid;
place-items: center;
font-family: Inter, system-ui, sans-serif;
}
.hf-transition-badge-button {
display: grid;
place-items: center;
width: 76px;
height: 76px;
border: 1px solid #e4e4e7;
border-radius: 22px;
background: #ffffff;
color: #18181b;
box-shadow: 0 20px 58px rgba(0, 0, 0, 0.12);
}
.hf-transition-badge-button svg {
width: 30px;
height: 30px;
fill: none;
stroke: currentColor;
stroke-width: 2.2;
stroke-linecap: round;
stroke-linejoin: round;
}
.hf-transition-badge-count {
position: absolute;
right: -8px;
top: -8px;
display: grid;
place-items: center;
min-width: 30px;
height: 30px;
padding: 0 8px;
border: 3px solid #ffffff;
border-radius: 999px;
background: #ef4444;
color: #ffffff;
font-size: 13px;
font-weight: 900;
transform-origin: center;
}
</style>
</head>
<body>
<div
id="demo"
data-composition-id="badge-pop-demo"
data-start="0"
data-width="1920"
data-height="1080"
data-duration="5"
>
<div class="demo-frame">
<div class="hf-transition-badge-pop">
<button class="hf-transition-badge-button" type="button" aria-label="Notifications">
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M18 8a6 6 0 10-12 0c0 7-3 7-3 7h18s-3 0-3-7" />
<path d="M10 20a2 2 0 004 0" />
</svg>
</button>
<span class="hf-transition-badge-count">3</span>
</div>
</div>
<script>
const tl = gsap.timeline({ paused: true });
tl.fromTo(
".hf-transition-badge-button",
{ y: 18, opacity: 0 },
{ y: 0, opacity: 1, duration: 0.34, ease: "power2.out" },
0.35,
);
tl.fromTo(
".hf-transition-badge-count",
{ scale: 0, opacity: 0 },
{ scale: 1, opacity: 1, duration: 0.42, ease: "back.out(2.4)" },
0.7,
);
tl.to(
".hf-transition-badge-count",
{ scale: 1.18, duration: 0.12, yoyo: true, repeat: 1, ease: "power1.inOut" },
1.15,
);
tl.set({}, {}, 5);
window.__timelines = window.__timelines || {};
window.__timelines["badge-pop-demo"] = tl;
</script>
</div>
</body>
</html>