Depth Headline

A huge serif headline sits behind a gradient sphere that slides in front of it for a sense of depth. A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/depth-headline

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { DepthHeadline } from "@/components/remocn/depth-headline";
 
const DepthHeadlineScene = () => (
  <DepthHeadline title="Studio" caption="Studio" showLogo accent="#3B5BFD" />
);
 
export const RemotionRoot = () => (
  <Composition
    id="DepthHeadline"
    component={DepthHeadlineScene}
    durationInFrames={240}
    fps={60}
    width={1280}
    height={720}
  />
);

The headline opens and rises behind a sphere that glides across the frame, with a caption and logo fading in underneath. Pass title and caption, and pass src with a transparent cutout image to replace the default sphere; it ships light and dark through theme.

Props15

PropTypeDefault
title
string"Studio"

Large headline placed behind the subject

src
string—

Cutout image shown in front of the title; defaults to a sphere

caption
string"Studio"

Small caption beside the logo

showLogo
booleantrue

Show the logo mark next to the caption

logo
React.ReactNode—

Replaces the remocn mark.

accent
string"#3B5BFD"

Accent color (any valid CSS color)

ink
string—

Text color of the headline and logo; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Fraunces"

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

fontWeight
number400

Weight of the headline.

riseFrames
number44

Frames the subject takes to rise in front of the headline.

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

theme
"dark" | "light""dark"

Ships light and dark palettes

  • titlestring

    Large headline placed behind the subject

    Default"Studio"

  • srcstring

    Cutout image shown in front of the title; defaults to a sphere

  • captionstring

    Small caption beside the logo

    Default"Studio"

  • showLogoboolean

    Show the logo mark next to the caption

    Defaulttrue

  • logoReact.ReactNode

    Replaces the remocn mark.

  • accentstring

    Accent color (any valid CSS color)

    Default"#3B5BFD"

  • inkstring

    Text color of the headline and logo; 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"Fraunces"

  • fontWeightnumber

    Weight of the headline.

    Default400

  • riseFramesnumber

    Frames the subject takes to rise in front of the headline.

    Default44

  • 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

    Default1

  • theme"dark" | "light"

    Ships light and dark palettes

    Default"dark"