Effect #065 in our rendered series
Word emphasis highlight
A highlight sweeps across the key words of a sentence in turn while the rest dims.
Rendered by us at 1920x1080 over a shot from Tears of Steel (Blender Foundation, CC-BY 3.0). Expand plays the full 1080p file with the film's sound.
Edit in Premiere, Resolve or After Effects? Jump to editor templates. Making many versions of the same video? Use the code route.
Make this effect with
Built and tested by us
Other ways, not tested by us
Use it in a real edit
The demo above already plays the composition over real footage: the clip is a muted <video> layer under the graphics (the file plate.mp4 in the code below), and the film's sound is added to the finished file. Replace that file with your own clip and render again. To use the graphics in an editor instead, switch the background off and render a transparent MOV (an H.264 MP4 cannot carry transparency):
npx hyperframes render . -o overlay.mov --format mov --fps 24 --variables '{"plate":false}'The routes in full
With Claude Code: the prompt we used
Rendered and tested by us in HyperFrames 0.8.10 on Nov 7, 2026.
Make a 5 second sentence where emphasis moves word by word: a highlight sweeps across the key words in turn while the rest of the sentence dims, driven by one scalar, with the highlight colour and the sentence as variables. Use a generic template sentence.
What changed since this prompt: the demo on this page is our second version, 6.2 seconds long, rebuilt on a shot from Tears of Steel with the same animation idea. The full composition below is the one we rendered; its build log lists every change.
Built by a Claude Code subagent (Sonnet) from the HyperFrames registry block mk-callout-highlight, HyperFrames 0.8.10. Claude Code then checked the composition with hyperframes lint and hyperframes check before we rendered it.
What we had to correct (6 notes from the build log):
- 6 Nov 2026, lint 1: 1 error, `invalid_composition_variables_declaration` (the variables JSON was written HTML-escaped inside a double-quoted attribute, and the linter does not decode entities). Fix: the attribute is now single-quoted raw JSON.
- 6 Nov 2026, lint 2: 0 errors, 0 warnings.
- Adapted from mk-callout-highlight: kept the single scalar that sweeps emphasis across the words. Changed to key words marked with asterisks, a highlight bar that grows behind the active word, a second scalar that dims and restores the rest, and an entrance and exit so the loop restarts clean.
- Decided against: the registry's light scheme, its fixed 8 second length and its sample sentence.
- hyperframes check: "Check passed" but with a contrast flag on a fading frame: "1.15:1 (need 3:1, t=2.5s)". By eye the frame at 2.5 s showed the text turning dark while the highlight bar was still only partly drawn, so dark letters sat on the dark plate. Real defect. Fix: the text switches to dark only when the bar is more than 55 percent drawn, and the bar fades in over its first stretch so a hairline never shows (a thin vertical line was visible next to "out" at 4.5 s).
- v2 (7 Nov 2026): rebuilt on Tears of Steel footage (plate dlg_barley, 6.2 s) with the film's sound. The sentence block moved from mid-frame to the bottom (80 px margin, 1728 px wide, 80 px text) and the highlight is now driven by the spoken key words: Barley?, ten, minutes... and perfect. each start their highlight bar on the measured word start (sentence string carries word@seconds tokens; blocks are separated by ~). Words fade in as they are spoken; a custom sentence without @ times is spread evenly. Variables keep working.
With HyperFrames code
Rendered and tested by us in HyperFrames 0.8.10 on Nov 7, 2026.
npx hyperframes add mk-callout-highlight
npx hyperframes render . -o out.mp4 --fps 24Settings you can change without rebuilding (pass them with --variables):
| Setting | Name | Type | Default |
|---|---|---|---|
| Sentence (wrap key words in asterisks) | sentence | string | How's@0.36 it@0.58 looking,@0.68 *Barley?@0.96*~We@1.9 should@2.2 have@2.52 about@2.76 *ten@3.02* *minutes...@3.26*~Well,@4.9 that's@5.16 *perfect.@5.54* |
| Highlight colour | accent | color | #ffc233 |
| Text size (px) | size | number | 80 |
| Show background | plate | boolean | true |
Our full composition (index.html, 9 KB)
<!doctype html>
<html lang="en" data-composition-variables='[{"id":"sentence","type":"string","label":"Sentence (wrap key words in asterisks)","default":"How's@0.36 it@0.58 looking,@0.68 *Barley?@0.96*~We@1.9 should@2.2 have@2.52 about@2.76 *ten@3.02* *minutes...@3.26*~Well,@4.9 that's@5.16 *perfect.@5.54*"},{"id":"accent","type":"color","label":"Highlight colour","default":"#ffc233"},{"id":"size","type":"number","label":"Text size (px)","default":80,"min":76,"max":96},{"id":"plate","type":"boolean","label":"Show background","default":true}]'>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=1920, height=1080" />
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@800&display=block" rel="stylesheet" />
<script src="gsap.min.js"></script>
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 1920px; height: 1080px; overflow: hidden; background: transparent; }
#root { position: relative; width: 100%; height: 100%; overflow: hidden; background: transparent; }
#plate { position: absolute; inset: 0; background: radial-gradient(120% 90% at 30% 40%, #1b2335 0%, #0b0d12 70%); overflow: hidden; }
#world { position: absolute; left: -200px; top: -120px; width: 2400px; height: 1320px; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); }
.pb1 { width: 760px; height: 760px; left: 180px; top: 260px; background: #ff5a1f; opacity: 0.35; }
.pb2 { width: 900px; height: 900px; left: 1200px; top: 80px; background: #2f6bff; opacity: 0.45; }
.grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 120px 120px; }
#box { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 80px; z-index: 10; }
#sent { width: 1728px; display: grid; text-align: center; font-family: "Montserrat", sans-serif; font-weight: 800; line-height: 1.4; color: #f5f5f7; text-shadow: 0 6px 18px rgba(0,0,0,0.45); }
.w { display: inline-block; position: relative; isolation: isolate; margin: 0 10px; padding: 2px 14px 4px; transform-origin: 50% 60%; }
.bar { position: absolute; inset: 0; border-radius: 14px; background: var(--accent); transform-origin: 0% 50%; transform: scaleX(0); z-index: -1; }
.t { position: relative; }
.blk { grid-area: 1 / 1; align-self: end; opacity: 0; }
.rv { display: inline-block; }
/* footage plate (v2): real footage, pinned, no generated blobs */
#plate { background: #000 !important; }
#world { left: 0 !important; top: 0 !important; width: 1920px !important; height: 1080px !important; transform: none !important; }
#world .blob, #world .grid { display: none !important; }
#pv { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; object-fit: cover; }
#scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%); }
</style>
</head>
<body>
<div id="root" data-composition-id="main" data-start="0" data-duration="6.2" data-fps="24" data-width="1920" data-height="1080">
<div id="plate"><div id="world"><video id="pv" src="plate.mp4" muted playsinline data-start="0" data-duration="6.2"></video><div id="scrim"></div><div class="blob pb1" id="pb1"></div><div class="blob pb2" id="pb2"></div><div class="grid"></div></div></div>
<div id="box"><div id="sent"></div></div>
</div>
<script>
window.__timelines = window.__timelines || {};
(function () {
const v = window.__hyperframes.getVariables();
const tl = gsap.timeline({ paused: true });
if (!v.plate) { document.getElementById("plate").style.display = "none"; document.getElementById("root").classList.add("noplate"); }
tl.fromTo("#world", { x: 0, y: 0 }, { x: -160, y: -50, duration: 5, ease: "none" }, 0);
const DEFAULT = "How's@0.36 it@0.58 looking,@0.68 *Barley?@0.96*~We@1.9 should@2.2 have@2.52 about@2.76 *ten@3.02* *minutes...@3.26*~Well,@4.9 that's@5.16 *perfect.@5.54*";
const D = 6.2;
const SENT = (typeof v.sentence === "string" && v.sentence.trim()) ? v.sentence : DEFAULT;
const size = Math.max(76, Math.min(96, Number(v.size) || 80));
const accent = (typeof v.accent === "string" && v.accent) ? v.accent : "#ffc233";
document.getElementById("root").style.setProperty("--accent", accent);
const sent = document.getElementById("sent");
sent.style.fontSize = size + "px";
// blocks are separated by "~"; a token may carry its spoken start as word@seconds, key words are wrapped in asterisks
const B = SENT.split("~").map(function (b) {
return b.trim().split(/\s+/).map(function (t) {
let tm = null; const m = t.match(/@([0-9.]+)/);
if (m) { tm = parseFloat(m[1]); t = t.replace(/@[0-9.]+/, ""); }
return { key: t.indexOf("*") >= 0, text: t.replace(/\*/g, ""), t: tm };
}).filter(function (t) { return t.text.length; });
});
const flat = []; B.forEach(function (b) { b.forEach(function (t) { flat.push(t); }); });
if (flat.some(function (t) { return t.t === null; })) flat.forEach(function (t, i) { t.t = 0.4 + i * ((D - 1.4) / flat.length); });
const LIGHT = [245, 245, 247], DARK = [11, 13, 18];
function mixc(a) { return "rgb(" + [0, 1, 2].map(function (c) { return Math.round(LIGHT[c] + (DARK[c] - LIGHT[c]) * a); }).join(",") + ")"; }
B.forEach(function (toks, bi) {
if (!toks.some(function (t) { return t.key; })) toks.forEach(function (t) { t.key = true; });
const blk = document.createElement("div"); blk.className = "blk"; blk.id = "blk" + bi; sent.appendChild(blk);
const keys = [], others = [];
toks.forEach(function (t, i) {
const rv = document.createElement("span"); rv.className = "rv";
const w = document.createElement("span"); w.className = "w"; w.id = "w" + bi + "_" + i;
const bar = document.createElement("span"); bar.className = "bar";
const tx = document.createElement("span"); tx.className = "t"; tx.textContent = t.text;
w.appendChild(bar); w.appendChild(tx); rv.appendChild(w); blk.appendChild(rv); blk.appendChild(document.createTextNode(" "));
t.rv = rv;
if (t.key) keys.push({ w: w, bar: bar, tx: tx, t: t.t }); else others.push(w);
});
const K = keys.length;
const st = { p: 0, h: 0 };
function paint() {
const u = st.p * (K - 1) + 0.5;
keys.forEach(function (k, j) {
let e = Math.max(0, Math.min(1, 1.5 - 2 * Math.abs(u - (j + 0.5))));
e = e * e * (3 - 2 * e);
const a = e * st.h;
k.bar.style.transform = "scaleX(" + a.toFixed(3) + ")";
k.tx.style.color = mixc(a > 0.55 ? 1 : 0);
k.bar.style.opacity = Math.min(1, a * 8).toFixed(3);
k.w.style.opacity = (1 - 0.68 * st.h * (1 - e)).toFixed(3);
k.w.style.transform = "scale(" + (1 + 0.05 * a).toFixed(3) + ")";
});
others.forEach(function (w) { w.style.opacity = (1 - 0.68 * st.h).toFixed(3); });
}
paint();
const bs = toks[0].t - 0.12;
const lastT = toks[toks.length - 1].t, lastKey = keys[K - 1].t;
const hold = Math.max(lastKey + 0.6, lastT + 0.5);
const nextStart = B[bi + 1] ? B[bi + 1][0].t - 0.3 : D - 0.02;
const bEnd = Math.min(hold + 0.35, nextStart);
tl.fromTo(blk, { opacity: 0, y: 20 }, { opacity: 1, y: 0, duration: 0.2, ease: "power3.out" }, bs);
toks.forEach(function (t) { tl.fromTo(t.rv, { opacity: 0, y: 12 }, { opacity: 1, y: 0, duration: 0.14, ease: "power2.out" }, t.t); });
// the emphasis starts on each key word's spoken start; st.p only moves between key words
tl.to(st, { h: 1, duration: 0.3, ease: "power2.out", onUpdate: paint }, keys[0].t - 0.04);
for (let j = 1; j < K; j++) tl.to(st, { p: j / (K - 1), duration: 0.2, ease: "power2.inOut", onUpdate: paint }, keys[j].t - 0.06);
tl.to(st, { h: 0, duration: Math.max(0.2, bEnd - 0.25 - (lastKey + 0.45)), ease: "power2.inOut", onUpdate: paint }, lastKey + 0.45);
tl.to(blk, { opacity: 0, y: -16, duration: 0.25, ease: "power2.in" }, bEnd - 0.25);
});
tl.to({}, { duration: D }, 0);
window.__timelines["main"] = tl;
})();
</script>
</body>
</html>
With Remotion
We have not built this effect in Remotion. If you use it, read its licence first: Individuals (personal or commercial use), organisations or teams with a total headcount of 3 or less, non-profits, and anyone evaluating Remotion before commercial use. A company does not qualify merely because it is unprofitable. Everyone not eligible for the Free License needs a Company License. Remotion licence FAQ, checked Nov 4, 2026.
In your editor: Premiere, Resolve, After Effects, CapCut
We have not reviewed an editor template for this effect yet.
Variations
The same composition rendered again with different settings. Nothing was rebuilt.
{"accent":"#7dd3fc","size":76}{"accent":"#ff4d8d","size":96}{"sentence":"How's@0.36 it@0.58 looking,@0.68 *Barley?@0.96* We@1.9 should@2.2 have@2.52 about@2.76 *ten@3.02* *minutes...@3.26*~Well,@4.9 that's@5.16 *perfect.@5.54*","size":76}Spec and test details
- Engine
- HyperFrames 0.8.10, GSAP 3.14.2 (local copy)
- Length and frame rate
- 6.208 seconds at 24 fps, rendered at 1920x1080
- Video files on this page
- H.264: 1920x1080 for Expand (5290.9 KB), 1280x720 in the page (1909.2 KB), 640x360 in galleries (409.6 KB); the 1080p and 720p files carry the film's sound
- Picture check
- The 1080p file scores VMAF 97.67 against our render master and keeps 98% of its edge detail (measured by us with FFmpeg libvmaf and OpenCV)
- Footage
- Old Thom, Barley and the Captain's crew, a sniper close-up cutaway, then the trio; 'How's it looking, Barley? We should have about ten minutes... Well, that's perfect.' (Tears of Steel, 3:16)
- Tested in editors
- None yet
- Flash check
- Passed: at most 1 general and 0 red flashes in any second. automated approximation of WCAG 2.3.1 on a 96x54 grid, whole loop including the restart; not a certification.
- Licence
- Composition adapted by us from the HyperFrames registry (Apache-2.0); text fonts from Google Fonts under the SIL Open Font License.
- Last tested
- Nov 7, 2026
- Machine
- Laptop: AMD Ryzen 7 7735U (8 cores, 16 threads), 31 GB RAM, Windows 11 Home; CPU rendering
Technical details: render times and file sizes
- Render of the 6-second master: 47.4 s (2 render workers, on the laptop above).
- full.mp4: 5290.9 KB
- hero.mp4: 1909.2 KB
- hero.webp: 39.1 KB
- tile.mp4: 409.6 KB
- tile.webp: 14.1 KB
- Variation "subtle": rendered in 42.6 s, 408.4 KB
- Variation "bold": rendered in 45.6 s, 415.6 KB
- Variation "long": rendered in 43.1 s, 414.6 KB
Credits
- Built from the HyperFrames registry block mk-callout-highlight by HeyGen (Apache-2.0), adapted by us.
- Fonts from Google Fonts, under the SIL Open Font License.
- Footage: Tears of Steel, (c) Blender Foundation, mango.blender.org, licensed CC-BY 3.0. We cropped the shots to 16:9 and laid our graphics over them.
- Editor templates and other routes on this page belong to their creators, who are credited on each card.
Related effects and jobs
Page checked on Nov 4, 2026.


