Bokeh Title

Bokeh title for Remotion: blurry drifting bokeh lights form a pattern, then defocus as a serif headline resolves. A premium or lifestyle brand intro.

In Remotion, Bokeh Title makes a serif headline resolve out of blurry, drifting bokeh lights: a focus pull first snaps the lights into a pattern, then they defocus again as the title and subtitle come into focus. Use it as the opening title of a premium or lifestyle launch.

Installation
$ pnpm dlx shadcn@latest add @remocn/bokeh-title

How to build this in Remotion

You don't need @remotion/noise or a canvas particle system. Install the component and pass your title:

bash
npx shadcn@latest add @remocn/bokeh-title

The lights are SVG shapes blurred with CSS filter, placed on the pattern with getLength and getPointAtLength from @remotion/paths; focus and color move with interpolate() and interpolateColors() on Easing.bezier curves. pattern and shape pick the arrangement and aperture, hold how long the pattern stays sharp.

Good to know

  • Length: 152 frames of motion at 30 fps (304 at 60 fps) with the default props; the demo plays 190 frames, which adds a hold. The timing is fixed: a longer composition only holds the last frame longer. The Usage example below is a 60 fps composition, so the numbers it hands to Remotion are doubled, see Frame rate.
  • Installs: remotion, @remotion/google-fonts, @remotion/paths from npm, plus the remocn helpers glide, frame-rate, timeline. The shadcn CLI copies the source into your project.
  • Fonts: loads Instrument Serif, Instrument Sans and Manrope itself through @remotion/google-fonts, so there is no font to load. Pass fontFamily to use your own face, and load it in your project.

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { BokehTitle } from "@/components/remocn/bokeh-title";
 
const BokehTitleScene = () => (
  <BokehTitle
    title="Launch films, made in code"
    subtitle="remocn · Spring release"
    pattern="grid"
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="BokehTitle"
    component={BokehTitleScene}
    durationInFrames={380}
    fps={60}
    width={1280}
    height={720}
  />
);

Out-of-focus bokeh lights drift, a focus pull snaps them into a mark or grid pattern, then they defocus again as the serif title and subtitle resolve. Pass title and subtitle (split on ' · ' for a lead and a tail) and choose pattern and shape; it ships light and dark through theme.

Props16

PropTypeDefault
title
string"Launch films, made in code"

Serif headline that resolves from the bokeh

subtitle
string"remocn · Spring release"

Line under the title; ' · ' splits a lead from the rest

pattern
"mark" | "grid""mark"

Arrangement the lights snap into: mark or grid

shape
"circle" | "hexagon""circle"

Shape of each bokeh light: circle or hexagon

hold
number24

Frames the pattern stays sharp before focus racks back to the title.

ambient
number24

Number of out-of-focus lights drifting in front of the pattern.

accent
string"#3B5BFD"

Accent color (any valid CSS color)

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Instrument Serif"

Typeface for the copy. Instrument Serif loads by default; load any other face in your project first.

logo
React.ReactNode—

Replaces the remocn mark.

grain
booleantrue

Film grain over the scene.

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

    Serif headline that resolves from the bokeh

    Default"Launch films, made in code"

  • subtitlestring

    Line under the title; ' · ' splits a lead from the rest

    Default"remocn · Spring release"

  • pattern"mark" | "grid"

    Arrangement the lights snap into: mark or grid

    Default"mark"

  • shape"circle" | "hexagon"

    Shape of each bokeh light: circle or hexagon

    Default"circle"

  • holdnumber

    Frames the pattern stays sharp before focus racks back to the title.

    Default24

  • ambientnumber

    Number of out-of-focus lights drifting in front of the pattern.

    Default24

  • accentstring

    Accent color (any valid CSS color)

    Default"#3B5BFD"

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • fontFamilystring

    Typeface for the copy. Instrument Serif loads by default; load any other face in your project first.

    Default"Instrument Serif"

  • logoReact.ReactNode

    Replaces the remocn mark.

  • grainboolean

    Film grain over the scene.

    Defaulttrue

  • 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 can I make a serif headline in Remotion that resolves out of blurry drifting bokeh lights?

Install Bokeh Title with npx shadcn@latest add @remocn/bokeh-title, pass title and subtitle, and choose pattern and shape for the lights.

How long should the composition be?

At least 152 frames at 30 fps (304 at 60 fps). The Usage example's 380 frames at 60 fps adds a hold.