Bracket Focus

Viewfinder brackets fly in and snap tight around a big value over a dotted grid, with a tag chip. A free, MIT-licensed Remotion number animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/bracket-focus

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { BracketFocus } from "@/components/remocn/bracket-focus";
 
const BracketFocusScene = () => <BracketFocus subject="1.8s" tag="Render time" />;
 
export const RemotionRoot = () => (
  <Composition
    id="BracketFocus"
    component={BracketFocusScene}
    durationInFrames={120}
    fps={30}
    width={1280}
    height={720}
  />
);

A dotted grid ripples in around a big value, and four viewfinder corner brackets fly in from the edges of the frame and snap tight around it with a springy settle. A tag chip and a size readout appear and the background dims around the focus. Pass subject and tag; accent colors the highlights. It ships light and dark through theme.

Props12

PropTypeDefault
subject
string"1.8s"

The value framed by the brackets.

tag
string"Render time"

Small chip text that names the value.

fontWeight
number500

Weight of the subject.

fly
number22

Frames the brackets take to fly in from the frame's edges.

accent
string"#3B5BFD"

Accent color for the highlights.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Geist"

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

grain
booleantrue

Film grain over the scene.

theme
"dark" | "light""dark"

Light or dark palette.

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.

  • subjectstring

    The value framed by the brackets.

    Default"1.8s"

  • tagstring

    Small chip text that names the value.

    Default"Render time"

  • fontWeightnumber

    Weight of the subject.

    Default500

  • flynumber

    Frames the brackets take to fly in from the frame's edges.

    Default22

  • accentstring

    Accent color for the highlights.

    Default"#3B5BFD"

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • fontFamilystring

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

    Default"Geist"

  • grainboolean

    Film grain over the scene.

    Defaulttrue

  • theme"dark" | "light"

    Light or dark palette.

    Default"dark"

  • 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