Drag and swipe that follow fingers
Ask Claude for a drawer, sheet or swipe and the element tracks the finger, then springs on release.
See it work
You give it
Use gestures. I'm building the packing screen for our Jaipur block-print shop's order app (React + Motion). Each order is a card in a list: order number, customer city, items (like "2 dohars, 1 table runner") and the total, e.g. ₹3,450. Staff swipe a card right to mark it packed, and press and hold a "Cancel order" button for 2 seconds to cancel. Right now the swipe uses onTouchEnd to check if they moved 100px, the card doesn't move with the finger, and the list scrolls when they try to swipe. Staff use cheap Android phones and sometimes wear gloves. How should I build both?
You get back
Build both yourself. A library is the right call for a bottom sheet, but swipe-to-pack cards are a custom gesture, and hold-to-confirm is a few lines of CSS.
What's wrong with the current swipe
- It only looks at the end. onTouchEnd checks the final distance, so nothing happens while the finger is down. A swipe is direct manipulation: while the finger is on the card, the card is the finger.
- It ignores flicks. A fixed 100px rule means a fast, short flick does nothing, and a slow drag on a wide phone feels different from a narrow one. Commit on distance or speed.
- The list scrolls because nothing tells the browser the sideways movement is yours. touch-action: pan-y on the card fixes it: the browser keeps vertical scrolling and hands horizontal movement to you.
Swipe right to pack: how it should feel
Phase · What happens
Finger down and moving · The card moves exactly with the finger, no easing, no delay. A green "Packed" layer behind it fades in as it moves
Dragging left, the wrong way · The card resists and moves only a fifth of the distance, so it's clear nothing is there
Let go past 40% of the card's width, or flicked faster than 500px/s · It's packed. The card carries on to the right at the speed the finger was moving, and the cards below slide up to close the gap
Let go short of that · It springs back quickly with a slight bounce. A slow snap-back feels like the app is arguing
Grabbed again while springing back · It follows the finger from where it is. Nothing has to finish first
First part of a run in Claude (Opus 5.5), Nov 2026
What it does
- Tracks the finger one to one while it is down.
- Hands over to a spring with the release speed.
- Lets you catch a sheet mid-motion.
What's inside
gestures/CREDITS.mdgestures/LICENSEgestures/SKILL.md
How you use it
- Get the skill: one zip file. It comes with every paid plan.
- Add it to Claude. In Claude, open Customize (Plugins on newer screens), then Skills. Press +, then Create skill, then Upload a skill. In Claude Code, unzip it into ~/.claude/skills/ instead.
- Start a new chat and tell Claude what you need, the way the example above does. The skill takes it from there.
- Then ask for the work. Claude reaches for the skill when it fits, or name it: "use gestures".
Get this skill with a paid plan
The download comes with every paid plan, along with all 204 Claude skills and the rest of the AI toolkit. “Sites that don't look templated” in this folder is free, so you can try one first.