AI Video Editing Flows

Effect #100 in our rendered series

Rack Focus Blur Effect

A creator pulls focus from a foreground object to the person behind it to direct the viewer's eye.

Real footage

1920x1080 file, 2.8 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.

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

Second shot

1920x1080 file, 2.8 MB

The same focus pull on the canal bridge, from the railing to Thom. Nothing in the composition changed except the footage file.

The composition plays your clip as a muted <video> layer under the graphics (the file plate.mp4 in the code below), so you swap the footage by replacing that file and rendering 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 14, 2026.

Build a 5 second rack focus on a shot with real depth. Start with the foreground sharp (a rifle and a balcony post) and everything behind it soft, with a thin focus ring and a small backed label saying what is in focus. After 1.5 seconds pull focus to the person behind: the sharp area glides across the frame, hunts a little past the face and settles, the foreground goes soft, the ring and label follow. Make the blur amount, the ring colour and both labels variables, and keep a switch that hides the footage.

What changed since this prompt: the demo on this page is our second version, 5 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 Claude Code (Opus) from the HyperFrames registry block rack-focus, then edited by us for real footage. Claude Code then checked the composition with hyperframes lint and hyperframes check before we rendered it.

What we had to correct (3 notes from the build log):

  • rack-focus animates a focal plane on a procedural scene. With one flat video we fake the plane: a blurred copy sits underneath and a sharp copy on top is revealed through a radial mask whose centre travels (CSS variables tweened by GSAP). The focus ring and label follow the same point.
  • Not real depth-of-field: the mask is elliptical, so the soft and sharp areas are chosen by hand for this shot.
  • v2 (14 Nov 2026): focus start and end points are now text variables (from, to) so the ring lands on the right subject per shot; real edit aims the ring at Thom's face (it was over his jaw); poster moved to 4.5 s where the pull has settled on the soldier's face.

With HyperFrames code

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

Install the block and render
npx hyperframes add rack-focus
npx hyperframes render . -o out.mp4 --fps 24

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

SettingNameTypeDefault
Out-of-focus blur (px)blurnumber18
Focus ring colouraccentcolor#ffd23f
First focus labellabel1textForeground: the rifle
Second focus labellabel2textBehind it: the soldier
Focus start (x,y px)fromtext1480,760
Focus end (x,y px)totext780,360
Show backgroundplatebooleantrue
Our full composition (index.html, 5 KB)
index.html
<!doctype html>
<html lang="en" data-composition-variables='[{"id": "blur", "type": "number", "label": "Out-of-focus blur (px)", "default": 18, "min": 6, "max": 34}, {"id": "accent", "type": "color", "label": "Focus ring colour", "default": "#ffd23f"}, {"id": "label1", "type": "text", "label": "First focus label", "default": "Foreground: the rifle"}, {"id": "label2", "type": "text", "label": "Second focus label", "default": "Behind it: the soldier"}, {"id": "from", "type": "text", "label": "Focus start (x,y px)", "default": "1480,760"}, {"id": "to", "type": "text", "label": "Focus end (x,y px)", "default": "780,360"}, {"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@600;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; }
      .vid { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; object-fit: cover; }
      .mont { font-family: "Montserrat", sans-serif; font-weight: 800; }

      #soft { position: absolute; inset: 0; overflow: hidden; }
      #soft .vid { transform: scale(1.06); }
      #sharp { position: absolute; inset: 0; --mx: 1480px; --my: 760px; -webkit-mask-image: radial-gradient(ellipse 560px 460px at var(--mx) var(--my), #000 42%, transparent 100%); mask-image: radial-gradient(ellipse 560px 460px at var(--mx) var(--my), #000 42%, transparent 100%); }
      #ring { position: absolute; width: 360px; height: 280px; margin: -140px 0 0 -180px; left: 1480px; top: 760px; border: 4px solid var(--accent); border-radius: 18px; box-shadow: 0 0 0 2px rgba(0,0,0,0.4); }
      #lab { position: absolute; font-size: 46px; opacity: 0; background: rgba(10,12,18,0.84); color: #fff; border-radius: 14px; padding: 14px 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.45); border-left: 8px solid var(--accent); white-space: nowrap; }
    
    </style>
  </head>
  <body>
    <div id="root" data-composition-id="main" data-start="0" data-duration="5" data-fps="24" data-width="1920" data-height="1080">
      <div id="soft"><video id="v1" class="plate vid " src="plate.mp4" muted playsinline data-start="0" data-duration="5.0"></video></div>
      <div id="sharp"><video id="v2" class="plate vid " src="plate.mp4" muted playsinline data-start="0" data-duration="4.98"></video></div>
      <div id="ring"></div><div id="lab" class="mont"></div>
    </div>
    <script>
      window.__timelines = window.__timelines || {};
      (function () {
        const v = window.__hyperframes.getVariables();
        const tl = gsap.timeline({ paused: true });
        if (!v.plate) document.querySelectorAll(".plate").forEach((e) => (e.style.display = "none"));
        const $ = (s) => document.querySelector(s);

        document.getElementById("root").style.setProperty("--accent", v.accent);
        $("#soft .vid").style.filter = "blur(" + v.blur + "px) brightness(0.92)";
        const pt = (t) => { const a = String(t).split(",").map(Number); return { x: a[0], y: a[1] }; };
        const A = pt(v.from), B = pt(v.to);
        const P = { x: A.x, y: A.y };
        const apply = () => { $("#sharp").style.setProperty("--mx", P.x + "px"); $("#sharp").style.setProperty("--my", P.y + "px"); $("#ring").style.left = P.x + "px"; $("#ring").style.top = P.y + "px";
          const l = $("#lab"); l.style.left = Math.min(Math.max(P.x - 180, 96), 1824 - l.offsetWidth) + "px"; l.style.top = Math.min(P.y + 170, 930) + "px"; };
        $("#lab").textContent = v.label1; apply();
        tl.fromTo("#ring", { opacity: 0, scale: 1.4 }, { opacity: 1, scale: 1, duration: 0.3, ease: "power2.out" }, 0.1);
        tl.fromTo("#lab", { opacity: 0, y: 14 }, { opacity: 1, y: 0, duration: 0.3, ease: "power2.out" }, 0.3);
        tl.to("#lab", { opacity: 0, duration: 0.15 }, 1.6);
        // the rack: focus hunts slightly past the subject, then settles
        tl.to(P, { x: B.x - 40, y: B.y - 20, duration: 1.15, ease: "power2.inOut", onUpdate: apply }, 1.7);
        tl.to(P, { x: B.x, y: B.y, duration: 0.35, ease: "sine.out", onUpdate: apply }, 2.85);
        tl.call(() => { $("#lab").textContent = v.label2; apply(); }, null, 2.95);
        tl.fromTo("#lab", { opacity: 0, y: 14 }, { opacity: 1, y: 0, duration: 0.3, ease: "power2.out", immediateRender: false }, 3.0);
        tl.to("#ring", { scale: 0.94, duration: 0.25, yoyo: true, repeat: 1, ease: "sine.inOut" }, 3.2);
    
        tl.to({}, { duration: 5 }, 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.

Light blur, white ring{"blur":10,"accent":"#ffffff"}
Heavy blur, red ring{"blur":30,"accent":"#ff3b3b"}
Different labels{"label1":"Close: the balcony rail","label2":"Far: the soldier"}

Spec and test details

Engine
HyperFrames 0.8.10, GSAP 3.14.2 (local copy)
Length and frame rate
5 seconds at 24 fps, rendered at 1920x1080
Video files on this page
H.264: 1920x1080 for Expand (2915.8 KB), 1280x720 in the page (769.9 KB), 640x360 in galleries (173 KB), no audio
Picture check
The 1080p file scores VMAF 98.23 against our render master and keeps 98% of its edge detail (measured by us with FFmpeg libvmaf and OpenCV)
Footage
a soldier on a balcony eating, rifle in foreground, cool blue (Tears of Steel, 2:26)
Tested in editors
None yet
Flash check
Passed: at most 0 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 14, 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 5-second master: 32.1 s (2 render workers, on the laptop above).
  • full.mp4: 2915.8 KB
  • hero.mp4: 769.9 KB
  • hero.webp: 19.9 KB
  • tile.mp4: 173 KB
  • tile.webp: 6.9 KB
  • real-edit.mp4: 960.1 KB
  • real-edit-full.mp4: 2880.6 KB
  • real-edit.webp: 28.7 KB
  • Variation "subtle": rendered in 30.7 s, 183 KB
  • Variation "bold": rendered in 32.1 s, 163.9 KB
  • Variation "labels": rendered in 32 s, 171.9 KB

Credits

  • Built from the HyperFrames registry block rack-focus 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.