Plain License

Dense legal clauses are replaced one by one by short plain-language phrases that build into a big line. A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/plain-license

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { PlainLicense } from "@/components/remocn/plain-license";
 
const PlainLicenseScene = () => (
  <PlainLicense
    clauses={[
      { legal: "Permission is hereby granted, free of charge,", plain: "Free," },
      { legal: "to any person obtaining a copy of this software,", plain: "for anyone," },
      { legal: "to use, copy, modify, merge, publish and distribute it.", plain: "for anything." },
    ]}
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="PlainLicense"
    component={PlainLicenseScene}
    durationInFrames={440}
    fps={60}
    width={1280}
    height={720}
  />
);

Each clause starts as dim legal text, then is swapped by its short plain phrase, which rises in the accent color and cools to ink when the next one takes over. At the end the plain phrases zoom into one big line, with the highlight clause keeping the accent. Pass clauses as { legal, plain } pairs. It ships light and dark.

Props13

PropTypeDefault
clauses
{ legal: string; plain: string }[]DEFAULT_CLAUSES

Legal text and its plain-language replacement, in reading order.

highlight
number0

Zero-based index of the clause whose plain phrase keeps the accent color.

step
number40

Frames between one clause swapping and the next; minimum 34.

stagger
number3

Frames between words of a plain rewrite as they rise in.

accent
string—

Color of the plain phrases; overrides the theme accent.

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Big Shoulders"

Typeface for the copy. Load the font in your project first.

fontWeight
number500

Weight of the text.

scale
number1

Size of the foreground around the frame's center; the background stays put.

delay
number0

Frames to hold the first frame before anything moves.

speed
number1

Playback speed multiplier for the whole timeline.

theme
"dark" | "light""dark"

Light or dark palette.

  • clauses{ legal: string; plain: string }[]

    Legal text and its plain-language replacement, in reading order.

    DefaultDEFAULT_CLAUSES

  • highlightnumber

    Zero-based index of the clause whose plain phrase keeps the accent color.

    Default0

  • stepnumber

    Frames between one clause swapping and the next; minimum 34.

    Default40

  • staggernumber

    Frames between words of a plain rewrite as they rise in.

    Default3

  • accentstring

    Color of the plain phrases; overrides the theme accent.

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • fontFamilystring

    Typeface for the copy. Load the font in your project first.

    Default"Big Shoulders"

  • fontWeightnumber

    Weight of the text.

    Default500

  • scalenumber

    Size of the foreground around the frame's center; the background stays put.

    Default1

  • delaynumber

    Frames to hold the first frame before anything moves.

    Default0

  • speednumber

    Playback speed multiplier for the whole timeline.

    Default1

  • theme"dark" | "light"

    Light or dark palette.

    Default"dark"