Rendered by the captions.js engine, not a mock-up.
Marker caption style
Marker is a free animated caption style for captions.js: Raleway black, the spoken word in #6f0eec, with the "underline" 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("Marker"),
});npx captions.js burn video.mp4 words.json --preset "Marker"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: "Marker" });Style details
| Font | Raleway, black |
|---|---|
| Case | As spoken |
| Text color | #FFFFFF |
| Active word | #6f0eec |
| Outline | none |
| Shadow | #000000 |
| Animation | underline |
| Position | bottom |
| Lines on screen | 2 |
Underline: An underline draws in under the active word as it is spoken.
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("Marker");
const mine = {
...base,
captionsSettings: {
...base.captionsSettings,
style: { ...base.captionsSettings.style, highlightColor: "#ff2e88" },
},
};


