Negation Drop

Condensed caps lines rise in, then each negation drops away and its stem word lands on a lime block. A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/negation-drop

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { NegationDrop } from "@/components/remocn/negation-drop";
 
const NegationDropScene = () => (
  <NegationDrop
    lines={["You can’t animate.", "You don’t have a team.", "It isn’t done."]}
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="NegationDrop"
    component={NegationDropScene}
    durationInFrames={270}
    fps={60}
    width={1280}
    height={720}
  />
);

Condensed all-caps lines rise in one after another. Then, line by line, the first contraction (can't, don't, isn't) loses its negation, which falls away, and the remaining stem word lands on a highlighted block while the line closes up. Pass lines that each contain a can't, don't or isn't style contraction. It ships light and dark.

Props11

PropTypeDefault
lines
string[]DEFAULT_LINES

Lines to set in caps; the first contraction in each line flips.

dropAt
number44

Frame the first contraction drops.

stagger
number14

Frames between one line's drop and the next.

accent
string—

Color of the highlight block behind the kept word.

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Barlow Condensed"

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

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.

  • linesstring[]

    Lines to set in caps; the first contraction in each line flips.

    DefaultDEFAULT_LINES

  • dropAtnumber

    Frame the first contraction drops.

    Default44

  • staggernumber

    Frames between one line's drop and the next.

    Default14

  • accentstring

    Color of the highlight block behind the kept word.

  • 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"Barlow Condensed"

  • 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"