Skip to content

Tilt the About portrait and featured article photo on hover - #46

Merged
riceset merged 1 commit into
v4from
riceset/profile-photo
Nov 30, 2026
Merged

riceset merged 1 commit into
v4from
riceset/profile-photo

Conversation

@riceset

@riceset riceset commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • The About page portrait and the featured article photo on the Articles page now tilt toward the pointer in 3D, lift slightly, and show a soft highlight and a shadow that follow it. Inspired by React Bits' HoloCard, without the holographic shader.
  • Motion runs on springs, so it eases in and settles instead of snapping. It sleeps once at rest.
  • Touch: follows a pressed finger and releases on lift, so nothing stays stuck in a hover state. Vertical swipes still scroll.
  • Skipped entirely for prefers-reduced-motion.
  • Shared via scripts/tilt.inline.ts + styles/tilt.scss (any [data-tilt] root). The article page itself is unchanged.

Test plan

  • tsc --noEmit and prettier pass
  • Headless browser: hover tilts on /about and /articles, resets after leaving, no page errors; no tilt on the article page

🤖 Generated with Claude Code

The photo leans in 3D, lifts slightly, and gets a soft highlight and a
shadow that follow the pointer, all driven by springs so it eases in and
settles. On touch screens it follows a pressed finger and lets go on
release. Shared by both pages via a [data-tilt] script and tilt.scss;
the article page itself is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@riceset
riceset merged commit 0ea15a8 into v4 Nov 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant