mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-14 13:27:13 +00:00
Port Remocn UI primitives into installable HyperFrames snippets. Add a first transitions.dev-inspired primitive set for agent-friendly motion patterns.
59 lines
1.6 KiB
HTML
Vendored
59 lines
1.6 KiB
HTML
Vendored
<!--
|
|
Resizable - shadcn-style UI primitive for HyperFrames.
|
|
|
|
Paste the markup and CSS into a composition. Use the timeline integration
|
|
note at the bottom as the starting point for deterministic GSAP animation.
|
|
-->
|
|
|
|
<div class="hf-ui-resizable">
|
|
<div class="hf-ui-resizable-pane primary">Preview</div>
|
|
<div class="hf-ui-resizable-handle"></div>
|
|
<div class="hf-ui-resizable-pane secondary">Inspector</div>
|
|
</div>
|
|
|
|
<style>
|
|
.hf-ui-resizable {
|
|
--hf-resizable-left: 58%;
|
|
display: grid;
|
|
grid-template-columns: var(--hf-resizable-left) 10px 1fr;
|
|
width: 620px;
|
|
height: 280px;
|
|
padding: 10px;
|
|
border: 1px solid #e4e4e7;
|
|
border-radius: 24px;
|
|
background: #ffffff;
|
|
color: #18181b;
|
|
font-family: Inter, system-ui, sans-serif;
|
|
box-shadow: 0 22px 70px rgba(0, 0, 0, 0.1);
|
|
}
|
|
.hf-ui-resizable-pane {
|
|
display: grid;
|
|
place-items: center;
|
|
border-radius: 16px;
|
|
font-weight: 850;
|
|
}
|
|
.hf-ui-resizable-pane.primary {
|
|
background: #18181b;
|
|
color: #ffffff;
|
|
}
|
|
.hf-ui-resizable-pane.secondary {
|
|
background: #f4f4f5;
|
|
color: #52525b;
|
|
}
|
|
.hf-ui-resizable-handle {
|
|
align-self: stretch;
|
|
justify-self: center;
|
|
width: 4px;
|
|
margin: 18px 0;
|
|
border-radius: 999px;
|
|
background: #d4d4d8;
|
|
}
|
|
</style>
|
|
|
|
<!--
|
|
Timeline integration:
|
|
tl.fromTo('.hf-ui-resizable', { opacity: 0, y: 24 }, { opacity: 1, y: 0, duration: 0.36, ease: 'power2.out' }, 0.3);
|
|
tl.to('.hf-ui-resizable', { '--hf-resizable-left': '68%', duration: 0.72, ease: 'power3.inOut' }, 0.85);
|
|
tl.to('.hf-ui-resizable-handle', { scaleY: 1.22, duration: 0.16, yoyo: true, repeat: 1, ease: 'power1.inOut' }, 0.85);
|
|
-->
|