---
title: "Scatter Mark"
description: "Steel bearings hold the shape of your logo. A press blows them apart, they bounce on the floor, and they fly back into place."
url: https://gelatinui.com/components/scatter-mark
markdown_url: https://gelatinui.com/components/scatter-mark.md
access: free
install: "npx shadcn@latest add @gelatin-ui/scatter-mark"
registry_item: https://gelatinui.com/r/scatter-mark.json
version: "2026-11-24"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Scatter Mark

> Steel bearings hold the shape of your logo. A press blows them apart, they bounce on the floor, and they fly back into place.

Page: https://gelatinui.com/components/scatter-mark

## When to use it

Best for: A brand section: steel bearings hold the shape of your logo, scatter on a press, and fly back.

- Use `mark` with your logo as filled paths in the units of a `viewBox`. A path with `cut: true` cuts a hole.
- Use `autoReturn={false}` with `ScatterMarkAssemble` to keep the bearings on the floor until a press.
- Use `burstSpeed`, `holdSeconds`, and `returnSeconds` for the scatter, the rest, and the flight back.

## When not to use it

- For a logo that changes to the next logo with a burst, use [Burst Logo Rotate](https://gelatinui.com/components/burst-logo-rotate.md).
- For a picture that falls apart into sand, use [Sand Dissolve](https://gelatinui.com/components/sand-dissolve.md).

## Notes for agents

- Give the root a size: the bearings fill the box. A small box makes smaller bearings.
- A press on the box scatters from that point, and a press on a button or a link inside does not. `ScatterMarkTrigger` is the keyboard path: it scatters from the middle.
- The bearings are decoration: keep the brand name in the page text.
- With no WebGL the same bearings draw on a 2D canvas.
- The pointer parts the bearings like a finger in sand (`pointerRadius`, `pointerForce`).

## Anatomy

```text
ScatterMark
├─ ScatterMarkTrigger (0..n)
└─ ScatterMarkAssemble (0..n)
```

## API reference

### ScatterMark

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `mark` | `PitMark` |  | The logo that the bearings form: filled paths in the units of a `viewBox`. |
| `spacing` | `number` | 14 | The distance between bearings at full width, in px. A large logo widens it. Default 14. |
| `padding` | `number` | 32 | The free space around the logo, in px. Default 32. |
| `depth` | `number` | 50 | How far the bearings may spread in depth after a scatter, in px. Default 50. |
| `burstSpeed` | `number` | 1100 | The speed of the scatter, in px per second. Default 1100. |
| `holdSeconds` | `number` | 1.6 | The seconds the bearings lie loose before they fly back. Default 1.6. |
| `returnSeconds` | `number` | 0.9 | The seconds the flight back takes to reach full pull. Default 0.9. |
| `autoReturn` | `boolean` | true | False: the bearings stay on the floor after a scatter. Default true. |
| `pull` | `number` | 110 | How hard the logo pulls its bearings back. Default 110. |
| `gravity` | `number` | 1700 | How fast loose bearings fall, in px per second squared. Default 1700. |
| `bounce` | `number` | 0.5 | The share of speed a bearing keeps in a hit, 0 to 1. Default 0.5. |
| `pointerRadius` | `number` | 90 | How far the pointer parts the bearings, in px. Default 90. |
| `pointerForce` | `number` | 26_000 | How hard the pointer parts the bearings, in px per second squared. Default 26000. |
| `colors` | `readonly string[]` | STEEL_COLORS | The bearing colors, any CSS color. |
| `roughness` | `number` | 0.16 | The polish: 0 is a mirror. Default 0.16. |
| `metalness` | `number` | 1 | The metal share of the surface, 0 to 1. Default 1. |
| `ambientLight` | `number` | 1.15 | The room reflected in the steel. Default 1.15. |
| `keyLight` | `number` | 0.9 | The key light from the upper left. Default 0.9. |
| `shadowColor` | `string` | "oklch(0.2 0 0)" | The color of the shadows on the page. Default a near black. |
| `shadowOpacity` | `number` | 0.16 | The strength of the shadows on the page, 0 to 1. Default 0.16. |
| `seed` | `number` | 9 | The seed of the start places and the scatter. Default 9. |
| `onStats` | `function` |  | Gets frame numbers about twice a second while the bearings move. |

### ScatterMarkTrigger

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `glass` | `"clear" \| "dark" \| "light"` |  |  |
| `rounded` | `"default" \| "full"` |  |  |
| `size` | `"default" \| "icon" \| "icon-lg" \| "icon-sm" \| "icon-xs" \| "lg" \| "sm" \| "xl" \| "xs"` |  |  |
| `variant` | `"dashed" \| "default" \| "destructive" \| "destructive-outline" \| "ghost" \| "link" \| "media" \| "outline" \| "secondary"` |  |  |
| `className` | `string` |  |  |
| `busy` | `boolean` |  | The button waits for the app (busy words): a spinner, `aria-busy`, and no clicks. Focus stays on the button. The style hook stays `data-loading`. |
| `spinnerPlacement` | `"center" \| "start"` |  | `center` (default): the spinner covers the label. `start`: it takes the leading icon slot. The icon sizes always use `center`, because their one icon is the label. |

Also takes every prop of Base UI `Button`: https://base-ui.com/react/components/button

### ScatterMarkAssemble

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `glass` | `"clear" \| "dark" \| "light"` |  |  |
| `rounded` | `"default" \| "full"` |  |  |
| `size` | `"default" \| "icon" \| "icon-lg" \| "icon-sm" \| "icon-xs" \| "lg" \| "sm" \| "xl" \| "xs"` |  |  |
| `variant` | `"dashed" \| "default" \| "destructive" \| "destructive-outline" \| "ghost" \| "link" \| "media" \| "outline" \| "secondary"` |  |  |
| `className` | `string` |  |  |
| `busy` | `boolean` |  | The button waits for the app (busy words): a spinner, `aria-busy`, and no clicks. Focus stays on the button. The style hook stays `data-loading`. |
| `spinnerPlacement` | `"center" \| "start"` |  | `center` (default): the spinner covers the label. `start`: it takes the leading icon slot. The icon sizes always use `center`, because their one icon is the label. |

Also takes every prop of Base UI `Button`: https://base-ui.com/react/components/button

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| ScatterMark | `scatter-mark` |  |  |  |
| ScatterMarkTrigger | `scatter-mark-trigger` |  |  |  |
| ScatterMarkAssemble | `scatter-mark-assemble` |  |  |  |

## Usage

Pass your logo as paths. Place `ScatterMarkTrigger` inside, so a keyboard can scatter it too.

```tsx title="brand-mark.tsx"
import { ScatterMark, ScatterMarkTrigger } from "@/components/effects/scatter-mark";
import type { PitMark } from "@/lib/physics-pit-geometry";

const JELLY_BUDDY: PitMark = {
  viewBox: [60, 65, 905, 905],
  paths: [
    { d: "M119 600C111 631 104 660 98 690C94 709 99 726 114 741C166 795 330 818 512 818C694 818 858 795 910 741C925 726 930 709 926 690C920 660 913 631 905 600Z" },
    { d: "M119 600C143 504 174 417 221 349C263 289 319 244 369 238C392 235 411 239 432 248C460 229 484 217 512 217C540 217 565 229 593 248C614 239 633 235 655 238C706 244 762 289 804 349C851 417 881 504 905 600C909 620 878 641 830 657C757 682 641 697 512 697C383 697 267 682 194 657C146 641 115 620 119 600Z" },
    { d: "M366.4 521.8a36.8 53.3 0 1 0 73.6 0a36.8 53.3 0 1 0 -73.6 0Z", cut: true },
    { d: "M591.3 521.8a36.8 53.3 0 1 0 73.6 0a36.8 53.3 0 1 0 -73.6 0Z", cut: true },
  ],
};

export function BrandMark() {
  return (
    <section className="flex flex-col gap-6 py-16">
      <ScatterMark mark={JELLY_BUDDY} holdSeconds={2} className="h-[480px]">
        <ScatterMarkTrigger className="absolute right-4 bottom-4" />
      </ScatterMark>
      <p className="max-w-sm text-3xl font-light tracking-tight">
        Made of small parts. Press it and see.
      </p>
    </section>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui/scatter-mark
```

It adds 44 registry items: 41 files, 7264 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`, `three`.

## Built on

- [Button](https://gelatinui.com/components/button.md)

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Burst Logo Rotate](https://gelatinui.com/components/burst-logo-rotate.md)
- [Magnetic](https://gelatinui.com/components/magnetic.md)
- [Sand Dissolve](https://gelatinui.com/components/sand-dissolve.md)

## Keyboard

| Keys | Action |
| --- | --- |
| Enter, Space | On Scatter, scatters the logo from its middle. On Assemble, calls the bearings back at once. |

## Motion

| Part | Motion |
| --- | --- |
| Scatter | progress · the bearings fly out at `burstSpeed`, fall, and bounce, then lie loose for `holdSeconds` |
| Return | glide · the logo pulls the bearings back, and the pull reaches full strength over `returnSeconds` |
| Show | fade · 150ms · the canvas fades in after its first frame |
