Examples
HyperFrames examples you can paste and render
Four complete HyperFrames compositions — title card, lower third, bar chart reveal and a 9:16 story — written so one file fits every frame size.
How to use these
Every example is a complete, self-contained page: paste the HTML into the index.html pane of the editor and the CSS into style.css, and it plays immediately. Because each one sizes itself with vh and clamp(), the same code works in 16:9, 9:16 and 1:1 without edits.
The CSS delays are what you see in the browser. When you render with HyperFrames, the same elements also carry its timing attributes so the renderer knows where each element sits on the composition timeline — the visual and the timeline are two views of one design.
1. Title card with a staggered rise
The workhorse: an eyebrow, a headline, three lines that arrive 120ms apart. Delay, not duration, is what makes it feel designed.
<div class="card">
<p class="kicker">Q4 REPORT</p>
<h1>Revenue up <em>41%</em></h1>
<p class="sub">Generated from the dashboard, rendered overnight.</p>
</div>
body{margin:0;min-height:100vh;display:grid;place-items:center;background:#0b1220;color:#fff;font-family:system-ui,sans-serif}
.card{padding:0 8vw;max-width:70ch}
.kicker{margin:0 0 18px;font-size:clamp(10px,1.4vw,14px);letter-spacing:.3em;color:#7f9bff;animation:up .5s .1s both}
h1{margin:0;font-size:clamp(30px,6vw,72px);line-height:1.05;letter-spacing:-.03em;animation:up .6s .25s both}
h1 em{font-style:normal;color:#7f9bff}
.sub{margin:20px 0 0;color:#8b98b0;font-size:clamp(12px,1.6vw,18px);animation:up .6s .45s both}
@keyframes up{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
2. Lower third with a wipe
clip-path wipes read as "broadcast" in a way that opacity never does. The text arrives after the plate, so the eye follows the order you intended.
<div class="lt">
<span class="plate"></span>
<div class="who">
<p class="name">Ada Lovelace</p>
<p class="role">Analyst, notes on the engine</p>
</div>
</div>
body{margin:0;min-height:100vh;background:#111827;font-family:system-ui,sans-serif}
.lt{position:absolute;left:6vw;bottom:12vh;display:flex;align-items:center;gap:18px}
.plate{position:absolute;inset:-14px -22vw -14px -22px;background:#2547d0;transform-origin:left;animation:wipe .5s cubic-bezier(.2,.8,.2,1) both;z-index:0}
.who{position:relative;z-index:1;padding:6px 0}
.name{margin:0;color:#fff;font-size:clamp(16px,2.4vw,30px);font-weight:700;letter-spacing:-.01em;animation:in .45s .3s both}
.role{margin:4px 0 0;color:#b9c6e6;font-size:clamp(11px,1.3vw,15px);animation:in .45s .42s both}
@keyframes wipe{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes in{from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:none}}
3. Bar chart reveal
Four bars, 90ms apart. Scaling from the left edge keeps the baseline fixed, which is the difference between a chart and four rectangles.
<div class="chart">
<div class="row"><span style="--v:.62;--d:.15s"></span><em>62</em></div>
<div class="row"><span style="--v:.81;--d:.24s"></span><em>81</em></div>
<div class="row"><span style="--v:.47;--d:.33s"></span><em>47</em></div>
<div class="row"><span style="--v:.95;--d:.42s"></span><em>95</em></div>
</div>
body{margin:0;min-height:100vh;display:grid;place-items:center;background:#f4f6fa;font-family:system-ui,sans-serif}
.chart{width:min(76vw,760px);display:grid;gap:clamp(8px,1.6vh,18px)}
.row{display:grid;grid-template-columns:1fr 3em;align-items:center;gap:14px}
.row span{display:block;height:clamp(10px,2.2vh,22px);border-radius:4px;background:#2547d0;transform-origin:left;transform:scaleX(var(--v));animation:grow .7s var(--d) both}
.row em{font-style:normal;color:#101828;font-weight:600;font-size:clamp(11px,1.5vw,18px);font-variant-numeric:tabular-nums;opacity:0;animation:in .4s calc(var(--d) + .5s) both}
@keyframes grow{from{transform:scaleX(0)}to{transform:scaleX(var(--v))}}
@keyframes in{to{opacity:1}}
4. A 9:16 story card
Vertical first. Switch the frame preset in the editor to 9:16 and this is what Shorts, Reels and TikTok get — one stat, one sentence, room to breathe.
<div class="story">
<p class="tag">SHIP FASTER</p>
<p class="big">3.4<span>×</span></p>
<p class="line">more variants per week once the template renders itself.</p>
<p class="mark">htmlvideomaker.com</p>
</div>
body{margin:0;min-height:100vh;background:radial-gradient(120% 80% at 20% 0%,#1b2a5e,#0b1220 60%);color:#fff;font-family:system-ui,sans-serif}
.story{height:100vh;padding:10vh 8vw;display:flex;flex-direction:column;justify-content:center;box-sizing:border-box}
.tag{margin:0 0 auto;font-size:clamp(10px,1.5vw,13px);letter-spacing:.32em;color:#7f9bff;animation:in .5s both}
.big{margin:0;font-size:clamp(64px,22vw,180px);line-height:.9;letter-spacing:-.05em;font-weight:800;animation:in .6s .1s both}
.big span{font-size:.4em;vertical-align:super;color:#7f9bff}
.line{margin:18px 0 0;max-width:22ch;font-size:clamp(13px,2.2vw,22px);color:#c8d4ee;animation:in .6s .3s both}
.mark{margin:auto 0 0;font-size:clamp(10px,1.4vw,13px);color:#6c7a94;animation:in .6s .5s both}
@keyframes in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
Why these are written this way
Every example follows the same three rules, and they are the rules that separate a video that looks edited from a page that happened to be recorded:
- One idea per frame. If a viewer needs longer than one second to name what they are looking at, the composition is doing too much.
- Delays before durations. Small gaps between elements read as intentional; long, careful easing usually reads as slow.
clamp()andvh, never fixed widths. This is what lets one file serve all three frame sizes, which matters when the same card goes out as a square post and a vertical story.
When the motion looks right in the editor, the next step is rendering rather than screen-recording: the tutorial covers both routes, and the comparison explains when the other framework is the better fit.