No.436 · Media
Hover Reel
A project list where a picture blooms under the cursor, follows it, and rolls to the next image as you move between rows.
The prompt
Written for the variant you picked above: Paper
Build a portfolio project list with a floating image preview. Each project is a full-width row link — a large title (clamp 1.75–2.75rem, 500, −0.025em) on the left and a muted label on the right — separated by hairline rules. The preview is one absolutely positioned 400×250 frame (8:5, 12px radius, deep soft shadow) containing a vertical strip of every project's image. Entering a row scales the frame in (scale 0 → 1, 400ms ease-out) and slides the strip to that row's image (translateY −100%·index, 450ms), so moving between rows rolls the pictures past inside the frame instead of swapping them. The frame follows the pointer through a rAF lerp (0.16 per frame, stopping when it arrives), clamped so it always stays 16px inside the component; leaving the list scales it away. While one row is hovered the others dim to 40%, and the hovered title slides 15px left while its label slides 15px right (500ms). Keyboard focus does the same and parks the frame at the right end of the focused row. Images are optional per project; by default each gets a generated canvas study. Selected variant — Paper (paper): Palette for this theme (Paper): --hr-bg #f2f0ec; --hr-ink #111; --hr-muted #6b6760; --hr-rule rgb(0 0 0 / 0.14). Treat these as the root colour tokens, one value per role, and name them to suit your code. Select it with the theme option set to "paper". Keep every dimension, spacing value, state and motion from the brief unchanged, and keep text at 4.5:1 contrast or better on these surfaces. This selection takes precedence over references to other themes or options in the general brief. Implement this selected appearance; do not add a variant picker or alternative appearances unless requested. Implementation requirements: Use React and TypeScript. Keep the component self-contained, with uniquely scoped CSS and no animation libraries. Include required imports, styles and font setup in the result. Interaction: Hover a row to bloom the preview under the cursor; move between rows to roll the images. Tab through the rows for the same effect from the keyboard. Motion: Frame scale 400ms and strip roll 450ms on cubic-bezier(0.22,1,0.36,1); pointer follow is a 0.16 lerp; row nudges 500ms. Accessibility: Rows are real links with visible focus; the floating preview is aria-hidden decoration because each title already names the project. Reduced motion removes the transitions and makes the frame track the pointer directly. Responsive behavior: Below 768px (or without hover) the floating frame is replaced by a small inline thumbnail at the start of each row, and the label moves under the title. Touch: Touch devices get inline thumbnails in every row instead of a floating preview. Preserve keyboard access, visible focus and reduced-motion behavior. Keep fictional demo data and simulated service calls in a separate usage example; expose callbacks for real actions and recover from rejected requests. Keep usage-example links inside the demo: use local buttons or prevent navigation. Demonstration links must not navigate to Vitrine routes or open other pages; preserve real URL support in the reusable component itself. Verify the result at narrow and wide viewport sizes, with keyboard input and reduced motion enabled.
Notes
- Interaction
- Hover a row to bloom the preview under the cursor; move between rows to roll the images. Tab through the rows for the same effect from the keyboard.
- Motion
- Frame scale 400ms and strip roll 450ms on cubic-bezier(0.22,1,0.36,1); pointer follow is a 0.16 lerp; row nudges 500ms.
- Accessibility
- Rows are real links with visible focus; the floating preview is aria-hidden decoration because each title already names the project. Reduced motion removes the transitions and makes the frame track the pointer directly.
- Responsive
- Below 768px (or without hover) the floating frame is replaced by a small inline thumbnail at the start of each row, and the label moves under the title.
- On touch
- Touch devices get inline thumbnails in every row instead of a floating preview.