AI analysis A booking card hover interaction where image and text shift in from the direction the cursor enters.
A single-column layout stacks a rounded square photo card, a full-width pill button, and a secondary note at the center of a white background. White sans-serif title and nightly price sit over a warm sepia photo, contrasted by a sky-blue gradient button, gray helper text, and a dotted-underline link. Depending on which side the cursor enters the card, the photo shifts slightly and the title and price slide in from that direction while resolving from blur to sharp, then blur out again when the cursor leaves. A circular arrow button is also placed in the top-right corner. It is useful as a micro-interaction reference for adding a spatial hover response to a simple card.
minimal · light-mode
claude-opus-5-5 · 2026-12-03 07:04 · Confidence 0.75
Original post Design Engineering Tip
Make hover interactions respond to where the cursor actually comes from.
Instead of revealing content with the same animation every time, detect the cursor entry direction and move the image + content accordingly. It makes a simple card feel much more spatial and responsive.
const direction = getDirection(event, ref.current);
const variants = {
top: { y: 20 },
bottom: { y: -20 },
left: { x: 20 },
right: { x: -20 },
};
396 likes · 17 reposts
x.com/gabriell_lab/status/2085730524736143521