Play of the Game

A banner slices in, the logo slams in as the player, then a stat plate flashes with a gradient highlight. A free, MIT-licensed Remotion logo animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/play-of-the-game

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { PlayOfTheGame } from "@/components/remocn/play-of-the-game";
 
const PlayOfTheGameScene = () => (
  <PlayOfTheGame
    title="Play of the game"
    role="Solo builder"
    stat="Shipped in 6 hours"
    highlight="6 hours"
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="PlayOfTheGame"
    component={PlayOfTheGameScene}
    durationInFrames={200}
    fps={60}
    width={1280}
    height={720}
  />
);

A banner with title slices in over the Remocn logo, which slams in as the player with a role label beneath. Then stat flashes on its own plate with highlight filled in the accent gradient and a final sweep. The player is always the Remocn logo. Ships light and dark.

Props15

PropTypeDefault
title
string"Play of the game"

Banner call that slices in first.

role
string"Solo builder"

Small role label under the player.

stat
string"Shipped in 6 hours"

Highlight stat flashed on its own plate.

highlight
string"6 hours"

Part of the stat filled with the gradient; must appear in stat.

accent
string"#3B5BFD"

Colour of the role tick and gradient.

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Saira"

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

logo
React.ReactNode—

Replaces the remocn mark.

impact
number14

Camera shake on impact, in pixels at 720p; 0 turns it off.

badge
booleantrue

Shows the hexagon role badge next to the player.

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.

theme
"dark" | "light""dark"

Dark or light palette and ground.

speed
number1

Playback multiplier for the whole timeline; 1 is normal speed.

  • titlestring

    Banner call that slices in first.

    Default"Play of the game"

  • rolestring

    Small role label under the player.

    Default"Solo builder"

  • statstring

    Highlight stat flashed on its own plate.

    Default"Shipped in 6 hours"

  • highlightstring

    Part of the stat filled with the gradient; must appear in stat.

    Default"6 hours"

  • accentstring

    Colour of the role tick and gradient.

    Default"#3B5BFD"

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • fontFamilystring

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

    Default"Saira"

  • logoReact.ReactNode

    Replaces the remocn mark.

  • impactnumber

    Camera shake on impact, in pixels at 720p; 0 turns it off.

    Default14

  • badgeboolean

    Shows the hexagon role badge next to the player.

    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

  • theme"dark" | "light"

    Dark or light palette and ground.

    Default"dark"

  • speednumber

    Playback multiplier for the whole timeline; 1 is normal speed.

    Default1