Phone frame, centred with caption below
Centred phone frame with a caption lane below. Screen recording stays in y 0.12-0.72; caption bar y~0.78 sits above the Reels bottom UI.
Preview unavailable
Lay out my footage like this: "Phone frame, centred with caption below" from the 24fps video editor library.
Preset JSON: https://24fps.dev/video-editor/layouts/phone-frame-tilted-copy/preset.json (pass its "preset" to the engine).
Engine (MIT, no dependencies, ES module): https://24fps.dev/editor/engine.js. Download the engine next to your page (curl -O) rather than importing cross-origin, then import { mount } from "./engine.js" in a <script type="module"> served over http.
Wiring: root = a position:relative box at the video's size. media = { second }: second = wrapper holding my other clip (often the background); the engine positions and crops it into the layout's slots. Then const fx = mount(root, { kind: "layout", preset, media }) and call fx.render(seconds) every frame. It is seek-safe: drive it from the GSAP timeline in HyperFrames or call render(frame / fps) in Remotion. Before capturing frames, await (fx.ready ?? document.fonts.ready). Check it on my footage: if text is hidden behind the subject or doesn't read against my colours, nudge the layer positions or colours.
Replace the demo text with mine: set preset.layers[n].text (use \n for line breaks); if none given, write lines that fit my footage and tell me.
Field reference: https://24fps.dev/video-editor/llms.txt. Keep sizes as fractions of the frame height so it works at any resolution. Credit: 24fps.dev/video-editor- Technique
- Common short-form vertical layout patterns used in editor-style templates and podcast clip editors
- Footage
- Man talking to camera, Pexels