Skip to content

Scatter Mark

Free

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

  • React 19
  • Tailwind CSS 4

Added Nov 24, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

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

brand-mark.tsx

ScatterMark

<div>
PropTypeDefaultDescription
markRequired—The logo that the bearings form: filled paths in the units of a viewBox.
spacingnumber14The distance between bearings at full width, in px. A large logo widens it. Default 14.
paddingnumber32The free space around the logo, in px. Default 32.
depthnumber50How far the bearings may spread in depth after a scatter, in px. Default 50.
burstSpeednumber1100The speed of the scatter, in px per second. Default 1100.
holdSecondsnumber1.6The seconds the bearings lie loose before they fly back. Default 1.6.
returnSecondsnumber0.9The seconds the flight back takes to reach full pull. Default 0.9.
autoReturnbooleantrueFalse: the bearings stay on the floor after a scatter. Default true.
pullnumber110How hard the logo pulls its bearings back. Default 110.
gravitynumber1700How fast loose bearings fall, in px per second squared. Default 1700.
bouncenumber0.5The share of speed a bearing keeps in a hit, 0 to 1. Default 0.5.
pointerRadiusnumber90How far the pointer parts the bearings, in px. Default 90.
pointerForcenumber26_000How hard the pointer parts the bearings, in px per second squared. Default 26000.
colorsreadonly string[]STEEL_COLORSThe bearing colors, any CSS color.
roughnessnumber0.16The polish: 0 is a mirror. Default 0.16.
metalnessnumber1The metal share of the surface, 0 to 1. Default 1.
ambientLightnumber1.15The room reflected in the steel. Default 1.15.
keyLightnumber0.9The key light from the upper left. Default 0.9.
shadowColorstring"oklch(0.2 0 0)"The color of the shadows on the page. Default a near black.
shadowOpacitynumber0.16The strength of the shadows on the page, 0 to 1. Default 0.16.
seednumber9The seed of the start places and the scatter. Default 9.
onStats—Gets frame numbers about twice a second while the bearings move.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

ScatterMarkTrigger

<button>
PropTypeDefaultDescription
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"—
classNamestring—
busyboolean—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.
From Base UIButtonBase UI docs
focusableWhenDisabledbooleanfalseWhether the button should be focusable when disabled.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<button> attributes—Every other attribute goes to the <button>, with a ref.

ScatterMarkAssemble

<button>
PropTypeDefaultDescription
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"—
classNamestring—
busyboolean—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.
From Base UIButtonBase UI docs
focusableWhenDisabledbooleanfalseWhether the button should be focusable when disabled.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<button> attributes—Every other attribute goes to the <button>, with a ref.
  • 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.
EnterorSpaceOn Scatter, scatters the logo from its middle. On Assemble, calls the bearings back at once.
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

Built with

Installs with Scatter Mark

Components
Button
  1. AddedScatter Mark, with Button.
Open the release