RemotionUI

Media Frame

One piece of media presented — the frame opens on it under a slow push.

SceneScenesAdvanced

media-frame30fps · 960×540
Install
$ npx remotion-ui@latest add media-frame

The frame opens like a shutter on the media while a slow push runs underneath, then the title masks up out of its own line and the caption settles beneath.

The frame is cut to aspect (16:9 by default) and centred, so contain media fills it instead of sitting in a letterbox, and the layout reserves only what is shown — with no title and no caption the frame owns the whole safe area.

Advanced. Installs @remotion/media for video sources.

Agent notes

Install first, then import the copied source component locally. AI guide →

Import
@/remotion/scenes/media-frame
  • Use when: full-frame scenes, overlays, cards, and reusable video sections.
  • Customize: src, title, caption, eyebrow, plus copied source for timing, layout, colors, and typography.
  • Rule: do not import this component from the remotion-ui npm package; it is copied into your project.

Usage

Example
import { MediaFrame } from "@/remotion/scenes/media-frame"; <MediaFrame src={staticFile("demo.png")} title="Product demo" />

API Reference

PropTypeDescription
src*stringImage or video source.
titlestringHeadline above the frame; masks up out of its own line.
captionstringSupporting line under the frame.
eyebrowstringSmall label above the title.
fit"cover" | "contain"Media object-fit behaviour. Use contain for UI screenshots.
aspectnumberAspect the frame is cut to, so contain media fills it.
radiusnumberCorner radius in composition pixels.
accentColorstringRim light and eyebrow colour.
theme"dark" | "light"Surface palette.
speednumberAnimation speed multiplier.

Related