Depth Headline

Layered depth headline for Remotion: a huge serif title sits behind a gradient sphere or cutout image that rises in front of it, for a hero product name.

In Remotion, Depth Headline puts a huge serif headline behind a gradient sphere that rises in front of it, so the title feels layered with depth. Use it for a product name or hero word, and pass a transparent cutout image with src to put your own product in front of the type instead of the sphere.

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

How to build this in Remotion

You don't need @remotion/three or React Three Fiber for this; it is flat layers in z order. Install the component:

bash
npx shadcn@latest add @remocn/depth-headline

The headline, the sphere (or your <Img> cutout) and the caption are stacked layers moved with interpolate() and Easing curves. The sphere is a CSS mesh gradient, so there is no WebGL to render.

Good to know

  • Length: 62 frames of motion at 30 fps (124 at 60 fps) with the default props. That is the minimum for its Sequence; add your own hold on top (the demo plays 120 frames). The Usage example below is a 60 fps composition, so the numbers it hands to Remotion are doubled, see Frame rate.
  • Sphere colors: a mesh of #ecdcf2 lilac, #8796ee periwinkle and #0e1645 navy with accent (#3B5BFD by default) as the main blue; only accent is a prop.
  • The sphere rises from the bottom of the frame; its path has no prop. riseFrames sets how long the rise takes.
  • Installs: remotion, @remotion/google-fonts from npm, plus the remocn helpers glide, frame-rate, timeline. The shadcn CLI copies the source into your project.
  • Font: loads Fraunces and Manrope itself through @remotion/google-fonts. Pass fontFamily to use your own face, and load that font in your project.

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. The default is loaded for you; load any other 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. The default is loaded for you; load any other 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"

Common questions

How do I get a huge serif headline to sit behind a sphere so it feels layered?

Install Depth Headline with npx shadcn@latest add @remocn/depth-headline, pass title, and either keep the gradient sphere or pass src with a transparent PNG.

Do I need to load Fraunces?

No. The component loads Fraunces and Manrope itself through @remotion/google-fonts.

  • Staggered Fade Up: words slide up and fade in sequentially with a wave-like cascade.
  • Photo Fill Type: a word cut out of the stage opens onto a photo that fills the frame, followed by a caption.
  • Full Bleed Type: huge condensed caps words slam in one at a time, the last lit by a sunrise gradient.