Skip to content
Get Kosh Pro

Field notes / 02

Movement, with meaning.

An update should explain what changed. It should also know when to be still.

One value. Three ways to arrive.
Motion
128Value 128. Effective motion: full

The effective level includes your system setting. A component can always ask for less motion.

01

Three levels. The same information.

01 / FULL

Follow the change.

Digits roll, bars find their new positions, and rows make room for what arrives. The path connects old and new.

02 / REDUCED

Keep it quiet.

Travel and scaling give way to direct updates and opacity changes. The underlying data stays complete.

03 / NONE

Arrive immediately.

The new state appears at once. No travel, no fade, no wait for an animation to end.

auto is a preference, not a fourth animation style. It leaves the decision to the surrounding settings.

02

The calmest setting wins.

Kosh combines the operating system’s reduced-motion preference, the provider prop, the visitor’s stored choice, and the component prop. A request for less motion always takes precedence.

System + provider + visitor + componentfull → reduced → noneThe furthest right request wins.

If the system asks for reduced motion, selecting full on a component cannot override it. Selecting none can make it quieter still.

React / TypeScript
<KoshProvider motion="auto">
  <FlowNumber data={128} motion="reduced" />
</KoshProvider>

The effective level is also written to data-motion so the CSS and JavaScript layers agree.

03

Give the visitor a say.

Add the shared switch where it’s easy to find. It supports arrow-key navigation and stores the visitor’s preference in local storage. The selected option reflects the effective level.

React / TypeScript
import { MotionSwitch } from "@/kosh/motion";

<MotionSwitch />

Use the default provider storage key with the default MotionScript. If you customize persistence, keep their configuration in sync.

04

A useful update doesn’t start over.

Keep stable IDs on bars, feed items, and story frames. Pass new data through the existing component. Remounting it with a different React key loses its previous state.

Use onSettle for work that should happen after an update comes to rest. Essential actions should never depend on the visitor watching an animation.

Keep exploringMake it feel like yours.