Skip to content

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

3.6 KB
Raw Blame
---
title: Flash Count
description: "A counter lands on 3,600 with a camera-flash pop, an exposure eyebrow in the corner"
component: flash-count
vibe: premium
length: 76
useWhen:
  - "A photo-flavoured number reveal where the count races up and a camera flash pops on the final value."
  - "A stat like 3,600 frames in a two-minute film that pairs with an exposure-style eyebrow such as the f-stop and shutter speed."
  - "A scene layered over footage or a gradient, using a transparent background."
avoidWhen:
  - "You want a heavy slam-in with no photography metaphor — use `smash-count`."
  - "You want a steady, calm figure with no flash — use `compact-stat`."
  - "You want the figure to glow with a floor reflection instead of a flash — use `lumen-count`."
askedAs:
  - "camera flash number reveal"
  - "photo exposure counter"
  - "I want a count racing up with a flash pop on the final value"
  - "photo-themed stat like shots taken with an exposure label"
  - "number lands with a bright flash"
  - "camera shutter stat"
---

<ComponentPreview name="flash-count" />

<InstallBlock name="flash-count" />

## Usage

```tsx
// src/Root.tsx
import { Composition } from "remotion";
import { FlashCount } from "@/components/remocn/flash-count";

const FlashCountScene = () => <FlashCount value={3600} from={120} eyebrow="f/8  ·  1/250 s" flashAt={54} />;

export const RemotionRoot = () => (
  <Composition
    id="FlashCount"
    component={FlashCountScene}
    durationInFrames={120}
    fps={30}
    width={1280}
    height={720}
  />
);
```

A large light-weight number counts up from `from` and the number drifts and scales slightly into place. At `flashAt` the screen pops with a camera flash, the number lands on `value`, and the eyebrow with its marker dot and the caption fade in. Pass `value`, `from`, `label`, `eyebrow` and `flashAt`. It ships light and dark through the `theme` prop.

<PropsTable title="Props"
  rows={[
    {
      name: "value",
      type: "number",
      default: "3600",
      description: "The final number the count lands on.",
    },
    {
      name: "from",
      type: "number",
      default: "120",
      description: "The number the count starts from.",
    },
    {
      name: "decimals",
      type: "number",
      default: "0",
      description: "Decimal places shown on the number.",
    },
    {
      name: "prefix",
      type: "string",
      default: "\"\"",
      description: "Text placed before the number, such as a currency sign.",
    },
    {
      name: "suffix",
      type: "string",
      default: "\"\"",
      description: "Text placed after the number, such as a unit.",
    },
    {
      name: "label",
      type: "string",
      default: "\"frames in a two‑minute launch film\"",
      description: "Caption that fades in after the flash.",
    },
    {
      name: "eyebrow",
      type: "string",
      default: "\"f/8  ·  1/250 s\"",
      description: "Small exposure-style line shown with the caption.",
    },
    {
      name: "flashAt",
      type: "number",
      default: "54",
      description: "Frame of the camera flash; the count runs up to it. Length is this plus 22.",
    },
    {
      name: "accent",
      type: "string",
      description: "Colour of the small marker dot.",
    },
    {
      name: "background",
      type: "string",
      description: "Stage colour; pass 'transparent' to layer over other footage.",
    },
    {
      name: "speed",
      type: "number",
      default: "1",
      description: "Playback speed multiplier; 1 is the designed pace.",
    },
    {
      name: "theme",
      type: "\"dark\" | \"light\"",
      default: "\"dark\"",
      description: "Ships light and dark.",
    },
  ]}
/>