Transit Lines
Metro-map lines converge on a hub station that resolves into the logo as the next stop. A free, MIT-licensed Remotion logo animation.
$ pnpm dlx shadcn@latest add @remocn/transit-linesUsage
// src/Root.tsx
import { Composition } from "remotion";
import { TransitLines } from "@/components/remocn/transit-lines";
const TransitLinesScene = () => (
<TransitLines
title="remocn"
kicker="Next stop"
accent="#3B5BFD"
/>
);
export const RemotionRoot = () => (
<Composition
id="TransitLines"
component={TransitLinesScene}
durationInFrames={270}
fps={60}
width={1280}
height={720}
/>
);Coloured line routes draw across a grid, stations pop as the lines pass, and all lines converge on a hub that grows and resolves into title, with kicker above it. Pass title, kicker and, to draw your own map, lines. Ships light and dark.
Props15
| Prop | Type | Default |
|---|---|---|
| title | string"remocn" Name the hub resolves into; Remocn renders the real logo. | |
| kicker | string"Next stop" Small line above the title. | |
| lines | TransitLine[]DEFAULT_LINES Routes as grid points, with tone, optional stations and labels. | |
| accent | string"#3B5BFD" Accent colour for the mark and highlights; any CSS colour. | |
| theme | "dark" | "light""dark" Dark or light palette and ground. | |
| stagger | number4 Frames between one line reaching the hub and the next. | |
| draw | number38 Frames each line takes to draw in. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Instrument Sans" Typeface for the copy. Load the font in your project first. | |
| logo | React.ReactNode— Replaces the remocn mark. | |
| 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. | |
| speed | number1 Playback multiplier for the whole timeline; 1 is normal speed. | |
- titlestring
Name the hub resolves into; Remocn renders the real logo.
Default
"remocn" - kickerstring
Small line above the title.
Default
"Next stop" - linesTransitLine[]
Routes as grid points, with tone, optional stations and labels.
Default
DEFAULT_LINES - accentstring
Accent colour for the mark and highlights; any CSS colour.
Default
"#3B5BFD" - theme"dark" | "light"
Dark or light palette and ground.
Default
"dark" - staggernumber
Frames between one line reaching the hub and the next.
Default
4 - drawnumber
Frames each line takes to draw in.
Default
38 - 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
"Instrument Sans" - logoReact.ReactNode
Replaces the remocn mark.
- scalenumber
Size of the foreground around the frame's center; the background stays put.
Default
1 - delaynumber
Frames to hold the first frame before anything moves.
Default
0 - grainboolean
Film grain over the scene.
Default
true - speednumber
Playback multiplier for the whole timeline; 1 is normal speed.
Default
1