better-motion
Decides what should animate and builds it, with exact values for duration, easing, scale and distance and recipes for enters, exits, icon swaps, shared layout animation and drag.
Install
npx skills add https://github.com/jakubkrehel/skills --skill better-motionDrag and gestures
Recipes for a drag that snaps, actions revealed by distance and Motion's gesture props. The single-pointer alternative every drag needs belongs to better-accessibility.
A row that snaps
The outer container clips with overflow: clip, which hides the overflow without making it scrollable. The row inside carries the drag and one motion value for its offset:
Keep the snap points and the threshold as named pixel constants. They are the values that get tuned by eye.
Actions revealed by distance
Reveal each action as the row passes its own threshold, never all at once. Store how many actions are showing and never the raw offset, so the row re-renders only as it crosses a threshold:
An action at opacity: 0 still takes focus and clicks, so inert removes it from the tab order and the hit area until it shows. React before 19 drops a boolean inert, so use disabled there.
A status dot that appears after the action completes scales from its own corner:
Gesture props
Keep a whileFocus animation small. It supports the focus indicator better-accessibility requires and never replaces it.
A slider thumb, or anything else that follows the pointer and then settles, takes a spring.