Index List

A numbered feature index draws in row by row, then a gradient band travels down to one highlighted row. A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/index-list

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { IndexList } from "@/components/remocn/index-list";
 
const IndexListScene = () => (
  <IndexList
    items={["Scenes", "Captions", "Transitions", "Templates"]}
    title="What is inside 2.0"
    highlight={2}
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="IndexList"
    component={IndexListScene}
    durationInFrames={260}
    fps={60}
    width={1280}
    height={720}
  />
);

Hairline rules draw across and a numbered list rises row by row under a logo and title; a gradient band then wipes in and travels down to the highlight row, where it parks with an arrow while the other rows dim. Pass items, title, the zero-based highlight index, and your own logo node (the default is the Remocn wordmark). It ships light and dark.

Props15

PropTypeDefault
items
string[]DEFAULT_ITEMS

Row labels, numbered automatically; the row height shrinks as you add more.

highlight
number3

Zero-based index of the row the gradient band lands on.

title
string"What’s inside 3.0"

Header text shown beside the logo.

countLabel
string"features"

Word after the item count in the top-right corner.

logo
React.ReactNode—

Header logo node; defaults to the Remocn wordmark, so pass your own.

stagger
number3

Frames between rows as the list builds.

accent
string"#3B5BFD"

Color of the travelling highlight band.

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Hanken Grotesk"

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.

grain
booleantrue

Film grain over the scene.

theme
"dark" | "light""dark"

Light or dark palette.

speed
number1

Playback speed multiplier for the whole timeline.

  • itemsstring[]

    Row labels, numbered automatically; the row height shrinks as you add more.

    DefaultDEFAULT_ITEMS

  • highlightnumber

    Zero-based index of the row the gradient band lands on.

    Default3

  • titlestring

    Header text shown beside the logo.

    Default"What’s inside 3.0"

  • countLabelstring

    Word after the item count in the top-right corner.

    Default"features"

  • logoReact.ReactNode

    Header logo node; defaults to the Remocn wordmark, so pass your own.

  • staggernumber

    Frames between rows as the list builds.

    Default3

  • accentstring

    Color of the travelling highlight band.

    Default"#3B5BFD"

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

  • 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

  • grainboolean

    Film grain over the scene.

    Defaulttrue

  • theme"dark" | "light"

    Light or dark palette.

    Default"dark"

  • speednumber

    Playback speed multiplier for the whole timeline.

    Default1