Rendered by the captions.js engine, not a mock-up.

Lovly caption style

Lovly is a free animated caption style for captions.js: Pacifico medium, the spoken word in #f866cf, with the "scale" word animation at the bottom of the frame. Use it live in the browser or burn it into an MP4 with FFmpeg.

Use it

Browser: overlay on a <video>
import captionsjs, { getPreset } from "captions.js";

captionsjs({
  video: document.querySelector("video")!,
  captions, // word timings: see the Whisper and Deepgram guides
  preset: getPreset("Lovly"),
});
Burn into an MP4 (needs ffmpeg)
npx captions.js burn video.mp4 words.json --preset "Lovly"

No servers? Render it through the captions.js Cloud API (early access).

Node.js
import { burnCaptions } from "@captionsjs/server";

await burnCaptions({ video: "video.mp4", captions: "words.json", preset: "Lovly" });

Style details

FontPacifico, medium
CaseAs spoken
Text color#ffffff
Active word#f866cf
Outlinenone
Shadow0
Animationscale
Positionbottom
Lines on screen2

Scale: The active word grows a little while it is spoken, then settles back.

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("Lovly");
const mine = {
  ...base,
  captionsSettings: {
    ...base.captionsSettings,
    style: { ...base.captionsSettings.style, highlightColor: "#ff2e88" },
  },
};

More scale styles

All caption styles