Rendered by the captions.js engine, not a mock-up.
Focus Box caption style
Focus Box is a free animated caption style for captions.js: Montserrat black in uppercase, the spoken word in #101318, with the "box-word" word animation at the bottom of the frame. Use it live in the browser or burn it into an MP4 with FFmpeg.
Use it
import captionsjs, { getPreset } from "captions.js";
captionsjs({
video: document.querySelector("video")!,
captions, // word timings: see the Whisper and Deepgram guides
preset: getPreset("Focus Box"),
});npx captions.js burn video.mp4 words.json --preset "Focus Box"No servers? Render it through the captions.js Cloud API (early access).
import { burnCaptions } from "@captionsjs/server";
await burnCaptions({ video: "video.mp4", captions: "words.json", preset: "Focus Box" });Style details
| Font | Montserrat, black |
|---|---|
| Case | UPPERCASE |
| Text color | #F8FAFC |
| Active word | #101318 |
| Outline | none |
| Shadow | none |
| Animation | box-word |
| Position | bottom |
| Lines on screen | 1 |
Box per word: A highlight box jumps from word to word, following the speaker.
Make it yours
A preset is a plain object. Clone it and change colors, font or animation; the browser and the FFmpeg render both take the result.
const base = getPreset("Focus Box");
const mine = {
...base,
captionsSettings: {
...base.captionsSettings,
style: { ...base.captionsSettings.style, highlightColor: "#ff2e88" },
},
};


