transitions-dev
Production-ready CSS transitions for web apps. Use when implementing notification badges, dropdowns, modals, panel reveals, page transitions, card resizes, number pop-ins, text swaps, icon swaps, success checks, avatar group hovers, error state shakes, search/input clear, skeleton loaders, shimmer text, sliding tabs, tooltips, staggered text reveals, card hover tilt, plus-to-menu morph, accordions, toasts, like buttons, learn-more hovers, checkbox checks, spinning counters, toggles, AI thinking states, reasoning streams, streaming text, matrix dot loaders, or banner stacking. Triggers on "add a transition", "animate the dropdown", "make the modal open smoothly", "swap icon", "page slide", "stagger animation", "open / close transition", "make it animate", "fade between", "success animation", "form error", "shake on invalid", "hover lift", "avatar stack hover", "clear the search", "skeleton loader", "loading shimmer", "shimmer text", "sliding tabs", "segmented control", "tooltip", "reveal text", "tilt card", "3D hover tilt", "cursor glare", "plus to menu", "FAB morph", "accordion", "collapsible", "expand / collapse", "disclosure", "toast", "snackbar", "like button", "heart animation", "learn more arrow", "checkbox", "check animation", "spinning counter", "odometer", "slot machine digits", "toggle", "switch", "thinking states", "AI status line", "agent reasoning", "reasoning stream", "streaming text", "stream words in", "matrix loader", "dot loader", "banner stack", "stacked toasts". Also "motion tokens", "scan for ad-hoc transitions", "replace hardcoded durations with motion tokens", "tokenize my animations", and the commands transitions reveal, transitions review, transitions apply, transitions refine.
Install
npx skills add https://github.com/Jakubantalik/transitions.dev --skill transitions-devCard hover tilt
When to use
A card / tile / media surface that tilts in 3D toward the pointer while hovered, with a soft light "glare" tracking the cursor across it. Use for product cards, credit / membership cards, feature tiles, cover art — anything that should feel physical and reactive on hover. Pointer-only (skips touch) and flattens under reduced motion.
The pointer is tracked on an outer flat wrapper (.t-tilt) that never transforms, so the tilting card can't rotate its own edges out from under the cursor (which causes hover flicker). The inner .t-tilt-card is the element that actually rotates.
HTML usage
Track the pointer on the OUTER .t-tilt (it never
transforms) and write four custom properties from JS:
el.style.setProperty('--tilt-rx', rxDeg + 'deg');
el.style.setProperty('--tilt-ry', ryDeg + 'deg');
el.style.setProperty('--tilt-gx', gxPct + '%');
el.style.setProperty('--tilt-gy', gyPct + '%');
Add .is-tilting while moving (fast follow) and
.is-hover to fade the glare in; remove both on leave.
Tunable variables
The :root defaults below match the live tuning on transitions.dev. Drop them into your global stylesheet once — every transition in this skill reads from semantic names like these, so multiple transitions can share a single :root block.
CSS
The @media (prefers-reduced-motion: reduce) guard at the bottom of the snippet is required — keep it. It zeroes the transition for users who have asked for less motion at the OS level.
JavaScript orchestration
Peak tilt angle
The rotation magnitude is a JS constant (MAX, in degrees), not a CSS variable — the orchestration writes --tilt-rx / --tilt-ry from the pointer position scaled by MAX. Raise it for a stronger lean (the live demo goes up to ~40°); 10–16° reads as a subtle, tasteful tilt.
Why the pointer is tracked on the flat wrapper
Bind pointermove to the outer .t-tilt (which never transforms), not the .t-tilt-card that rotates. If you track the tilting element, its rotating edges slip out from under the cursor near the borders and the hover flickers on and off.
Touch / mobile
Because it uses Pointer Events, the tilt also works on touch: tap-hold-drag on the card and it follows your finger (a touch pointermove only fires while pressed). Two pieces make this reliable — touch-action: none on .t-tilt so the drag tilts instead of scrolling the page, and setPointerCapture on pointerdown so the gesture keeps targeting the card even if the finger drifts past its edge.