AI Video Editing Flows

Effect #086 in our rendered series

Gradient fill captions

Large uppercase phrases bounce in and each word fills with a two-colour gradient as it is spoken.

Real footage, with sound

1920x1080 file, 5.0 MB

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):

Render the graphics alone, with 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.

Write a HyperFrames clip with captions in large uppercase where each phrase has a gradient-filled text and an elastic bounce entrance. Make the two gradient colours and the speed variables.

What changed since this prompt: the demo on this page is our second version, 6 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 caption-gradient-fill, 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 (10 notes from the build log):

  • 6 Nov 2026 22:08, lint 1: 0 errors, 0 warnings (first run).
  • Adapted from registry block caption-gradient-fill: per-word gradient clipped to text, sweeping fill, phrase groups.
  • Changed from the block: replaced the one-gradient background-position trick with two stacked layers (white base, gradient layer revealed by a clip-path wipe as each word is spoken, base hidden after the wipe so no white fringe), gradient colours as variables with a slow shimmer, elastic.out(1, 0.45) staggered bounce on each phrase, speed variable scales the bounce and the wipe, long-lines variable that wraps onto two lines, 5 s with every group faded out before the end, template sentences instead of HyperFrames advertising text.
  • Decided against: the fixed SIRI rainbow gradient and the canvas font-fitting step (wrapping with padding is deterministic without font measurement).
  • lint 0 errors, 0 warnings.
  • hyperframes check: Check passed, no flags.
  • Flash check (WCAG 2.3.1 approximation, whole loop): pass, 0 general and 0 red flashes per second; the three variations and the real-edit composite pass too.
  • Four 1920 px frames saved in renders/review_083plus/gradient-fill-captions/ and looked at by eye. The last letter of a phrase is still white while the gradient fill reaches it; that is the fill following the speech. No fault found.
  • Status: QA_HOLD in tools/build_pack.py. Not published until the review pass releases it.
  • v2 (7 Nov 2026): rebuilt on Tears of Steel footage (plate dlg_heart, 6.0 s) with the film's sound; each word bounces in 80 ms before it is spoken and its gradient fills on the spoken start of 'You broke my heart. I know. You forgot me on Earth.' Text 88 px (80 px in the long variation), bottom margin 80 px; the old 132 px size was far over the caption range. The long variation joins 'I know.' with the last phrase (the 0.64 s gap keeps the caption on screen).

With HyperFrames code

Rendered and tested by us in HyperFrames 0.8.10 on Nov 7, 2026.

Install the block and render
npx hyperframes add caption-gradient-fill
npx hyperframes render . -o out.mp4 --fps 24

Settings you can change without rebuilding (pass them with --variables):

SettingNameTypeDefault
Gradient colour 1color_acolor#ff2063
Gradient colour 2color_bcolor#fe9f1b
Speedspeednumber1
Line setlinesenumstandard
Show backgroundplatebooleantrue
Our full composition (index.html, 7 KB)
index.html
<!doctype html>
<html lang="en" data-composition-variables='[{"id": "color_a", "type": "color", "label": "Gradient colour 1", "default": "#ff2063"}, {"id": "color_b", "type": "color", "label": "Gradient colour 2", "default": "#fe9f1b"}, {"id": "speed", "type": "number", "label": "Speed", "default": 1, "min": 0.5, "max": 2}, {"id": "lines", "type": "enum", "label": "Line set", "default": "standard", "options": [{"value": "standard", "label": "Short phrases"}, {"value": "long", "label": "Long lines that wrap"}]}, {"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@900&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); }
      .b1 { width: 760px; height: 760px; left: 180px; top: 260px; background: #ff5a1f; opacity: 0.35; }
      .b2 { 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; }
      #cap { position: absolute; inset: 0; z-index: 10; }
      .grp { position: absolute; left: 0; bottom: 80px; width: 100%; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 6px 30px; padding: 0 160px; visibility: hidden; }
      .w { display: inline-grid; font-family: "Montserrat", sans-serif; font-weight: 900; text-transform: uppercase; line-height: 1.05; letter-spacing: 0.02em; padding: 0.08em 0.05em; transform-origin: 50% 80%; }
      .w > span { grid-area: 1 / 1; white-space: nowrap; }
      .base { color: rgba(255,255,255,0.94); text-shadow: 0 8px 24px rgba(0,0,0,0.5); }
      .fill { color: transparent; -webkit-background-clip: text; background-clip: text; background-size: 200% 100%; }
    
      /* 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.0" 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.0"></video><div id="scrim"></div><div class="blob b1" id="b1"></div><div class="blob b2" id="b2"></div><div class="grid"></div></div></div>
      <div id="cap"></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";
        tl.fromTo("#world", { x: 0, y: 0 }, { x: -160, y: -50, duration: 2.5, ease: "sine.inOut" }, 0);
        tl.to("#world", { x: 0, y: 0, duration: 2.5, ease: "sine.inOut" }, 2.5);
        tl.fromTo("#b1", { x: 0, y: 0 }, { x: 140, y: -80, duration: 2.5, ease: "sine.inOut" }, 0);
        tl.to("#b1", { x: 0, y: 0, duration: 2.5, ease: "sine.inOut" }, 2.5);
        tl.fromTo("#b2", { x: 0, y: 0 }, { x: -120, y: 100, duration: 2.5, ease: "sine.inOut" }, 0);
        tl.to("#b2", { x: 0, y: 0, duration: 2.5, ease: "sine.inOut" }, 2.5);
        tl.to({}, { duration: 6.0 }, 0);
        const S = Math.max(0.5, Math.min(2, Number(v.speed) || 1));
        const d = (x) => x / S;
        const root = document.getElementById("root");

        const A = v.color_a || "#ff2063", Bc = v.color_b || "#fe9f1b";
        const GRAD = "linear-gradient(90deg, " + A + ", " + Bc + ", " + A + ")";
        const SETS = {"standard": [[["You", 0.04, 0.42], ["broke", 0.46, 1.06], ["my", 1.1, 1.36], ["heart.", 1.4, 1.84]], [["I", 2.86, 3.1], ["know.", 3.1, 3.4]], [["You", 4.04, 4.26], ["forgot", 4.28, 4.72], ["me", 4.74, 4.96], ["on", 4.97, 5.1], ["Earth.", 5.1, 5.42]]], "long": [[["You", 0.04, 0.42], ["broke", 0.46, 1.06], ["my", 1.1, 1.36], ["heart.", 1.4, 1.84]], [["I", 2.86, 3.1], ["know.", 3.1, 3.4], ["You", 4.04, 4.26], ["forgot", 4.28, 4.72], ["me", 4.74, 4.96], ["on", 4.97, 5.1], ["Earth.", 5.1, 5.42]]]};
        const groups = SETS[v.lines] || SETS.standard;
        const size = v.lines === "long" ? 80 : 88;
        const cap = document.getElementById("cap");
        groups.forEach((g, gi) => {
          const grp = document.createElement("div");
          grp.className = "grp"; grp.id = "g" + gi;
          const els = [];
          g.forEach(([text], i) => {
            const w = document.createElement("span"); w.className = "w"; w.id = "w" + gi + "_" + i; w.style.fontSize = size + "px";
            const base = document.createElement("span"); base.className = "base"; base.id = "ba" + gi + "_" + i; base.textContent = text;
            const fill = document.createElement("span"); fill.className = "fill"; fill.id = "fi" + gi + "_" + i; fill.textContent = text;
            fill.style.backgroundImage = GRAD;
            w.appendChild(base); w.appendChild(fill); grp.appendChild(w); els.push(w);
          });
          cap.appendChild(grp);
          const appear = g[0][1] - 0.1;
          const next = groups[gi + 1] ? groups[gi + 1][0][1] - 0.15 : 6.0;
          const end = Math.min(g[g.length - 1][2] + 0.45, next - 0.05, 5.85);
          const bounce = Math.min(d(0.8), end - appear - 0.2);
          tl.set(grp, { visibility: "visible" }, appear);
          els.forEach((el, i) => { tl.fromTo(el, { scale: 0.3, y: 70, opacity: 0 }, { scale: 1, y: 0, opacity: 1, duration: Math.min(bounce, 0.6), ease: "elastic.out(1, 0.45)" }, g[i][1] - 0.08); });
          g.forEach(([, ws, we], i) => {
            const fillDur = Math.max(0.12, (we - ws) / Math.max(1, S * 0.8));
            tl.fromTo("#fi" + gi + "_" + i, { clipPath: "inset(0% 100% 0% 0%)", backgroundPosition: "0% 50%" }, { clipPath: "inset(0% 0% 0% 0%)", duration: fillDur, ease: "power1.out" }, ws);
            tl.to("#fi" + gi + "_" + i, { backgroundPosition: "100% 50%", duration: Math.max(0.1, end - ws - fillDur), ease: "none" }, ws + fillDur);
            tl.set("#ba" + gi + "_" + i, { opacity: 0 }, ws + fillDur);
          });
          tl.to(els, { opacity: 0, scale: 0.92, duration: 0.15, ease: "power2.in" }, end - 0.15);
          tl.set(grp, { visibility: "hidden" }, end);
        });
        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.

Subtle: cool blue to teal, calmer bounce{"color_a":"#2f6bff","color_b":"#46e5b7","speed":0.7}
Bold: magenta to yellow, fast bounce{"color_a":"#ff2d6f","color_b":"#ffd23f","speed":1.7}
Long lines that wrap{"lines":"long"}

Spec and test details

Engine
HyperFrames 0.8.10, GSAP 3.14.2 (local copy)
Length and frame rate
6 seconds at 24 fps, rendered at 1920x1080
Video files on this page
H.264: 1920x1080 for Expand (5075.2 KB), 1280x720 in the page (1765.5 KB), 640x360 in galleries (377.9 KB); the 1080p and 720p files carry the film's sound
Picture check
The 1080p file scores VMAF 99.07 against our render master and keeps 96% of its edge detail (measured by us with FFmpeg libvmaf and OpenCV)
Footage
Celia close-up, Thom with the robot hand on his face, Celia again; 'You broke my heart. ... I know. You forgot me on Earth.' (Tears of Steel, 6:23)
Tested in editors
None yet
Flash check
Passed: at most 2 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: 73.5 s (2 render workers, on the laptop above).
  • full.mp4: 5075.2 KB
  • hero.mp4: 1765.5 KB
  • hero.webp: 34.1 KB
  • tile.mp4: 377.9 KB
  • tile.webp: 12.8 KB
  • Variation "subtle": rendered in 62.5 s, 377.6 KB
  • Variation "bold": rendered in 62.8 s, 378.6 KB
  • Variation "long": rendered in 66.2 s, 379.2 KB

Credits

  • Built from the HyperFrames registry component caption-gradient-fill 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.