motion-solidjs·77 examples

Motion for SolidJS, by example.

A live gallery of every gesture, transition, layout trick, drag constraint, scroll effect and motion value pattern — running on motion-solidjs, TanStack Start and SolidJS.

Animations

transitions, keyframes, springs
imperative
animate()
The imperative animate() function — drive a DOM element from a click handler.
initial / animate
Animate on mount
initial → animate runs once when the element mounts.
shadow
Box-shadow
Soft, breathing drop-shadow on a hovering disc.
createAnimateMini
createAnimateMini
WAAPI-only sibling of createAnimate — smallest bundle for transform & opacity sequences.
createAnimationFrame
createAnimationFrame
Run a callback every frame — drive a signal and a motion value from one rAF loop.
reducedMotion
createReducedMotionConfig
Read the resolved reduced-motion preference — combines the OS setting with MotionConfig.
--props
CSS variables
Animate any custom property — color, length, anything.
utility
delay()
A cancellable, frame-aware setTimeout — returns a cancel function.
auto-height
Height: auto
A collapsible drawer with smooth height animation.
keyframes
Keyframes
Pass an array of values to interpolate through keyframes.
generator
spring()
Use the spring generator with animate() — switch stiffness on the fly.
imperative
stagger()
Imperative stagger — pass stagger() to animate() to cascade selectors.
transition.path
Transition along an arc
Set `transition.path = arc()` to follow a curved bezier path between keyframes instead of the default straight line.
tween
Tween easing
A linear tween with custom cubic-bezier easing.
utility
wrap()
Wrap a number into [min, max) — perfect for circular indices.