Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

2.6 KB
Raw Blame
---
title: Snap Click
description: "The two halves of the logo slam together at a seam with a click, then a label types beneath."
component: snap-click
vibe: clean
length: 45
useWhen:
  - "A short, punchy logo sting with a tactile click."
  - "A brand beat with a typed one-line descriptor right after the slam."
  - "A product tagline moment that should feel mechanical and precise."
avoidWhen:
  - "You want soft, slow light instead of a slam — use `first-light`."
  - "Several words should lock in turn before the logo — use `split-match`."
  - "The sting needs a louder trailer-style drop — use `bass-drop`."
askedAs:
  - "logo halves slam together"
  - "clicky logo sting"
  - "I want the two halves of our mark to snap shut with a click sound"
  - "punchy short brand beat that types a one-line descriptor below"
  - "tactile moment where the logo locks together then a label types out"
  - "magnet snap logo reveal"
---

<ComponentPreview name="snap-click" />

<InstallBlock name="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.

<PropsTable title="Props"
  rows={[
    {
      name: "text",
      type: "string",
      default: "\"emocn\"",
      description: "Lowercase letters set after the R mark.",
    },
    {
      name: "seam",
      type: "[number, number]",
      description: "Where the lockup splits: glyph index and fraction of its width.",
    },
    {
      name: "label",
      type: "string",
      default: "\"Animations for Remotion\"",
      description: "Small line typed under the lockup after the click.",
    },
    {
      name: "accent",
      type: "string",
      default: "\"#3B5BFD\"",
      description: "Accent colour for the mark and highlights; any CSS colour.",
    },
    {
      name: "theme",
      type: "\"dark\" | \"light\"",
      default: "\"dark\"",
      description: "Dark or light palette and ground.",
    },
    {
      name: "speed",
      type: "number",
      default: "1",
      description: "Playback multiplier for the whole timeline; 1 is normal speed.",
    },
  ]}
/>