Photo Fill Type

A word cut out of the stage opens onto a photo that fills the frame, followed by a caption. A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/photo-fill-type

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { PhotoFillType } from "@/components/remocn/photo-fill-type";
 
const PhotoFillTypeScene = () => (
  <PhotoFillType title="Dusk" caption="Not a photograph. Every pixel is code." src={staticFile("shots/dusk.jpg")} />
);
 
export const RemotionRoot = () => (
  <Composition
    id="PhotoFillType"
    component={PhotoFillTypeScene}
    durationInFrames={165}
    fps={30}
    width={1280}
    height={720}
  />
);

The word sits as a cutout with the image visible through its letters, then expands until the image fills the frame and a caption fades in. Pass title and caption, and src with your own image to replace the built-in generated landscape; it ships light and dark through theme.

Props14

PropTypeDefault
title
string"Dusk"

Word cut out of the stage; shows the image inside

caption
string"Not a photograph. Every pixel is code."

Line that fades in after the image fills the frame

src
string—

Image shown through the word; defaults to a generated landscape

accent
string"#3B5BFD"

Accent color (any valid CSS color)

ink
string—

Caption color; white over the image by default.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Barlow Condensed"

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

expandAt
number72

Frame the letters start filling with the image and the word opens to full bleed.

stagger
number3

Frames between letters filling, center letters first.

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.

theme
"dark" | "light""dark"

Ships light and dark palettes

speed
number1

Playback speed multiplier

  • titlestring

    Word cut out of the stage; shows the image inside

    Default"Dusk"

  • captionstring

    Line that fades in after the image fills the frame

    Default"Not a photograph. Every pixel is code."

  • srcstring

    Image shown through the word; defaults to a generated landscape

  • accentstring

    Accent color (any valid CSS color)

    Default"#3B5BFD"

  • inkstring

    Caption color; white over the image by default.

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • fontFamilystring

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

    Default"Barlow Condensed"

  • expandAtnumber

    Frame the letters start filling with the image and the word opens to full bleed.

    Default72

  • staggernumber

    Frames between letters filling, center letters first.

    Default3

  • 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

  • grainboolean

    Film grain over the scene.

    Defaulttrue

  • theme"dark" | "light"

    Ships light and dark palettes

    Default"dark"

  • speednumber

    Playback speed multiplier

    Default1