Snap Click

The two halves of the logo slam together at a seam with a click, then a label types out beneath, typewriter style. 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={210}
    fps={60}
    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.

Good to know

  • What it looks like: a short, punchy logo sting where the logo halves slam together with a click, then a typewriter label types out underneath.
  • Length: the 45 frames at 30 fps include the typing of the default label: the click lands on frame 13, typing starts 11 frames later and runs at about 1.1 characters per frame, so a longer label runs longer. The example's 210 frames is the docs preview length (105 at 30 fps) doubled for a 60 fps composition, with a hold at the end.
  • Your own logo: the lockup is the R mark plus text, set from glyph outlines built into the file. There is no prop for a custom SVG or children; to use your mark, edit the copied source, or pick a sting that takes your logo, such as Orbit Lock.
  • Click sound: the component plays no audio. Add your own sound effect with Remotion's <Audio> in a Sequence that starts on the click frame (click, doubled at 60 fps).
  • Typing speed and caret: there is no separate prop; speed retimes the whole sting, and the timing prop can stretch the type element.
  • Dependencies: remotion and @remotion/google-fonts, plus the @remocn/frame-rate and @remocn/timeline helpers, all installed by npx shadcn@latest add @remocn/snap-click.

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