React MotionKit
/
lib
Files
Code
Info
useBall
ball
The travelling ball: a round body that charges toward its destination, springs across and squashes against the wall it lands on (the Switch thumb physics for dots, thumbs, carets and rails).
Beats
The three beats as helpers: press charge (usePress, sink, stretch), the cascade of secondary parts after a hero movement, the put-down of a landing part and the reflow spring for siblings.
composeRefs
compose-refs
Combines several React refs into one callback ref, with React 19 ref cleanup support.
FloatingLabel
field-label
The field family's floating label: a pill with the travelling ball's physics, thrown onto the rim on focus where it lands with a squash, tinted toward ring.
Effects GLSL chunks
fx-glsl
Shared GLSL chunks for effect shaders: simplex noise with fbm, OKLab color conversion and film grain.
Effects presets
fx-preset
Resolves the preset and temperament props of an effect into colors, intensity and speed.
Effects runtime
fx-runtime
Shared runtime of the Effects collection: gated frame loop, mouse and touch pointer with ghost hand, CSS colour conversion and capped device pixel ratio.
Morph
One surface becomes another: shared-layout surfaces without bounce, content that travels without stretching, a box-shadow rim that stays 1px, and parts that rise in after the surface.
MotionKit Provider
motion-kit
Sets the temperament (calm, lively, playful), global time scale and reduced-motion policy for every MotionKit component.
Motion Presets
motion-presets
The motion language: temperament table (calm, lively, playful), springs, durations, easing curves and stagger rules used by every MotionKit component.
usePill
pill
The stretching pill: an active-item capsule whose leading edge springs ahead while the trailing edge follows, so it stretches over the travel and contracts on arrival.
Roll
The digit roll: tabular digits that travel vertically like a ball between stops, only the changed ones, in the direction of change, with reserved width so the layout never shifts.
Sections runtime
section-runtime
Shared runtime of the Sections collection: loads a section's heavy graphics the first time it nears the viewport, with a still frame meanwhile.
Shape
The shape language as data: the built-in ball, pill, tile and triangle as SVG paths, custom paths with their viewBox, fitting, masks and a cached sampled outline for physics.
Temperaments
The single table of MotionKit temperaments (calm, lively, playful): springs, physics, durations, squash, tilt, stagger and CSS easings.
Select a component to view its code
Click on any item in the sidebar to get started
Select a component to view its information
useBall
ball
The travelling ball: a round body that charges toward its destination, springs across and squashes against the wall it lands on (the Switch thumb physics for dots, thumbs, carets and rails).
Beats
The three beats as helpers: press charge (usePress, sink, stretch), the cascade of secondary parts after a hero movement, the put-down of a landing part and the reflow spring for siblings.
composeRefs
compose-refs
Combines several React refs into one callback ref, with React 19 ref cleanup support.
FloatingLabel
field-label
The field family's floating label: a pill with the travelling ball's physics, thrown onto the rim on focus where it lands with a squash, tinted toward ring.
Effects GLSL chunks
fx-glsl
Shared GLSL chunks for effect shaders: simplex noise with fbm, OKLab color conversion and film grain.
Effects presets
fx-preset
Resolves the preset and temperament props of an effect into colors, intensity and speed.
Effects runtime
fx-runtime
Shared runtime of the Effects collection: gated frame loop, mouse and touch pointer with ghost hand, CSS colour conversion and capped device pixel ratio.
Morph
One surface becomes another: shared-layout surfaces without bounce, content that travels without stretching, a box-shadow rim that stays 1px, and parts that rise in after the surface.
MotionKit Provider
motion-kit
Sets the temperament (calm, lively, playful), global time scale and reduced-motion policy for every MotionKit component.
Motion Presets
motion-presets
The motion language: temperament table (calm, lively, playful), springs, durations, easing curves and stagger rules used by every MotionKit component.
usePill
pill
The stretching pill: an active-item capsule whose leading edge springs ahead while the trailing edge follows, so it stretches over the travel and contracts on arrival.
Roll
The digit roll: tabular digits that travel vertically like a ball between stops, only the changed ones, in the direction of change, with reserved width so the layout never shifts.
Sections runtime
section-runtime
Shared runtime of the Sections collection: loads a section's heavy graphics the first time it nears the viewport, with a still frame meanwhile.
Shape
The shape language as data: the built-in ball, pill, tile and triangle as SVG paths, custom paths with their viewBox, fitting, masks and a cached sampled outline for physics.
Temperaments
The single table of MotionKit temperaments (calm, lively, playful): springs, physics, durations, squash, tilt, stagger and CSS easings.
Select a component to view its code
Click on any item in the sidebar to get started
Select a component to view its information