Depth Headline

A huge serif headline sits behind a gradient sphere that slides in front of it for a sense of depth.

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={120}
    fps={30}
    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.

Props7

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

accent
string"#3B5BFD"

Accent color (any valid CSS color)

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

  • accentstring

    Accent color (any valid CSS color)

    Default"#3B5BFD"

  • speednumber

    Playback speed multiplier

    Default1

  • theme"dark" | "light"

    Ships light and dark palettes

    Default"dark"