Skip to content

Site: slider on transform, hover gating, 320px demo controls - #22

Merged
dpdev69 merged 1 commit into
mainfrom
claude/project-thread-ll49zx
Oct 26, 2026
Merged

dpdev69 merged 1 commit into
mainfrom
claude/project-thread-ll49zx

Conversation

@dpdev69

@dpdev69 dpdev69 commented Oct 26, 2026

Copy link
Copy Markdown
Owner

Requested by Boss · project thread

Item 6 and the phone baseline from the design-skills assessment (animation-performance, mobile-native, break-ui). This only touches site/; the app is unchanged.

  • Slider: .msl .fill now animates transform: scaleX(var(--v)) and .msl .knob animates translateX(calc(var(--v) * (var(--w) - 20px))), replacing width and left. sliderHTML passes --w next to the inline width. I checked the geometry in Playwright: the knob lands at v·(w−20) and the fill at v·w, with intermediate values mid-transition.
  • Row collapses: .mp-mouse and .mg-row keep their height collapse. The rows underneath have to slide up into the gap, which needs layout (a transform would leave a hole), and it's a short one-off inside a small overflow: hidden panel.
  • Hover: all 21 :hover rules only apply on (hover: hover) and (pointer: fine). That includes .pill svg, .mice-grid li and .links-row a svg.
  • 320px: the hero demo's "Press" row (label plus four buttons) made the page 337px wide, and that was already the case on the live site. Under 375px the label now wraps above the buttons.
  • Taps: the tap highlight is transparent. .btn, .copy and .seg button get touch-action: manipulation. .copy presses at scale(0.97), and .btn keeps its existing 0.98 press.
  • Cache: asset stamps are bumped to site.css?v=7 and site.js?v=5.

Checked locally with Playwright at iPhone 13, 320px and 1280px on index and mx-vertical: no horizontal scroll, 21 of 21 hovers gated, no page errors. theme-color was already set per scheme.


Generated by Claude Code

The settings slider's fill and knob now move with scaleX/translateX
instead of width/left, hover styles only apply under a real pointer,
the demo's Press row wraps its label on 320px phones instead of
widening the page, taps skip the grey flash, and the copy button
presses. Asset stamps bumped so the new CSS/JS load.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KnA8JgURE7Ame1zatWCMHS
@dpdev69
dpdev69 merged commit cc76f89 into main Oct 26, 2026
2 of 3 checks passed
@dpdev69 dpdev69 self-assigned this Oct 26, 2026
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.

2 participants