Riddle Clues

A numbered clue sets up a line, an accent twist completes it, and the clues repeat before a closing reveal. A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/riddle-clues

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { RiddleClues } from "@/components/remocn/riddle-clues";
 
const RiddleCluesScene = () => (
  <RiddleClues
    clues={[
      { line: "It has scenes,", turn: "but no camera." },
      { line: "It has a timeline,", turn: "but no editor." },
    ]}
    closer={{ line: "Give up?", turn: "Answer on the 14th." }}
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="RiddleClues"
    component={RiddleCluesScene}
    durationInFrames={460}
    fps={60}
    width={1280}
    height={720}
  />
);

Each clue shows a small numbered label and a line in white; a beat later its turn rises in the accent color beside or below it, then the clue lifts out and the next arrives. The closer is the last frame and stays on screen. Pass clues and closer as { line, turn } pairs. Timing compresses if the composition is shorter than the 214 frames plus a short hold. It ships light and dark.

Props13

PropTypeDefault
clues
{ line: string; turn: string }[]DEFAULT_CLUES

Riddle clues played in order, each a setup line and an accent twist.

closer
{ line: string; turn: string }DEFAULT_CLOSER

Final reveal frame that stays on screen after the clues.

label
string"Clue"

Word used in the small numbered label above each clue.

stagger
number3

Frames between words as a line rises in.

fontWeight
number400

Weight of the clues and label.

accent
string—

Color of the twist lines; overrides the theme accent.

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Funnel Display"

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.

  • clues{ line: string; turn: string }[]

    Riddle clues played in order, each a setup line and an accent twist.

    DefaultDEFAULT_CLUES

  • closer{ line: string; turn: string }

    Final reveal frame that stays on screen after the clues.

    DefaultDEFAULT_CLOSER

  • labelstring

    Word used in the small numbered label above each clue.

    Default"Clue"

  • staggernumber

    Frames between words as a line rises in.

    Default3

  • fontWeightnumber

    Weight of the clues and label.

    Default400

  • accentstring

    Color of the twist lines; 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"Funnel Display"

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