21st

Boxed Caption Lines

Component 2

About

Boxed Caption Lines is a text animation for Remotion videos. Introduces an idea through moving typography. Plays 6 seconds in 16:9, 9:16 and 1:1, with editable text, colors, fonts and paint background.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Boxed Caption Lines to your project and fits it to your theme.

Code

How Boxed Caption Lines is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

// Built with Remotion - https://remotion.pro/license
import { Composition } from "remotion";
import { Component } from "./video/mg-cap-boxed/mg-cap-boxed";
import { schema, defaults } from "./video/mg-cap-boxed/mg-cap-boxed.schema";

export const BoxedCaptionLinesComposition = () => (
  <Composition
    id="mg-cap-boxed"
    component={Component}
    schema={schema}
    defaultProps={defaults}
    durationInFrames={180}
    fps={30}
    width={1920}
    height={1080}
  />
);

Dependencies