Snap Click

The two halves of the logo slam together at a seam with a click, then a label types beneath. A free, MIT-licensed Remotion logo animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/snap-click

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { SnapClick } from "@/components/remocn/snap-click";
 
const SnapClickScene = () => (
  <SnapClick
    text="emocn"
    label="Animations for Remotion"
    accent="#3B5BFD"
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="SnapClick"
    component={SnapClickScene}
    durationInFrames={105}
    fps={30}
    width={1280}
    height={720}
  />
);

The two halves of the lockup slam together at a seam with a flash and a small shake, then label types in beneath it with a caret. Pass text, label and, to move the split, seam. Ships light and dark.

Props12

PropTypeDefault
text
string"emocn"

Lowercase letters set after the R mark.

seam
[number, number]—

Where the lockup splits: glyph index and fraction of its width.

label
string"Animations for Remotion"

Small line typed under the lockup after the click.

click
number13

Frame the two halves snap together; the label starts typing 11 frames later.

accent
string"#3B5BFD"

Accent colour for the mark and highlights; any CSS colour.

ink
string—

Text color; overrides the theme ink.

background
string—

Solid fill in place of the gradient ground; pass "transparent" to drop it.

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"

Dark or light palette and ground.

speed
number1

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

  • textstring

    Lowercase letters set after the R mark.

    Default"emocn"

  • seam[number, number]

    Where the lockup splits: glyph index and fraction of its width.

  • labelstring

    Small line typed under the lockup after the click.

    Default"Animations for Remotion"

  • clicknumber

    Frame the two halves snap together; the label starts typing 11 frames later.

    Default13

  • accentstring

    Accent colour for the mark and highlights; any CSS colour.

    Default"#3B5BFD"

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Solid fill in place of the gradient ground; pass "transparent" to drop it.

  • 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"

    Dark or light palette and ground.

    Default"dark"

  • speednumber

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

    Default1