Record the reduced-motion and aura follow-up
This commit is contained in:
1 parent
8ead408ff2
commit
23a55ea711
1 file changed
+30
-19
@@ -17,11 +17,12 @@ Date: 2026-11-01
|
|||||||
- `.ambient` now holds three `<span class="aura a1/a2/a3">` layers instead of
|
- `.ambient` now holds three `<span class="aura a1/a2/a3">` layers instead of
|
||||||
one element with two background gradients.
|
one element with two background gradients.
|
||||||
- `src/styles/global.css`
|
- `src/styles/global.css`
|
||||||
- Auras are individual radial-gradient discs, each drifting and scaling on
|
- Auras are individual, two-lobe radial gradients, heavily blurred
|
||||||
its own clock (46s/58s/72s, negative delays, `alternate` + `ease-in-out`).
|
(`filter:blur(clamp(48px,7vmax,100px))`), each drifting and scaling on its
|
||||||
|
own clock (46s/58s/72s, negative delays, `alternate` + `ease-in-out`).
|
||||||
Only `transform` changes, so the backdrop stays on the compositor.
|
Only `transform` changes, so the backdrop stays on the compositor.
|
||||||
- Hero peacock gets `--bob:5px` (total travel, i.e. ±2.5px) and
|
- Hero peacock gets `--bob:6px` (total travel, i.e. ±3px) and
|
||||||
`--bob-speed:7s`; `@keyframes peacock-bob` runs `translate3d` between
|
`--bob-speed:6s`; `@keyframes peacock-bob` runs `translate3d` between
|
||||||
`calc(var(--bob) * -.5)` and `calc(var(--bob) * .5)`.
|
`calc(var(--bob) * -.5)` and `calc(var(--bob) * .5)`.
|
||||||
- Nodes now have a visible unlit state (dark disc + inset hairline ring) and a
|
- Nodes now have a visible unlit state (dark disc + inset hairline ring) and a
|
||||||
lit state: iridescent fill, teal/blue halo, slight scale, plus a one-shot
|
lit state: iridescent fill, teal/blue halo, slight scale, plus a one-shot
|
||||||
@@ -30,30 +31,37 @@ Date: 2026-11-01
|
|||||||
- Footer `.ft .roller .b` ("Project") uses `background:var(--irid)` with
|
- Footer `.ft .roller .b` ("Project") uses `background:var(--irid)` with
|
||||||
`background-clip:text` and transparent text fill.
|
`background-clip:text` and transparent text fill.
|
||||||
- `src/scripts/site.js`
|
- `src/scripts/site.js`
|
||||||
- The spine handler now computes the fill tip against the spine's real top
|
- The spine handler computes the fill tip against the spine's real top (10px)
|
||||||
(10px) and height (wrap height − 20px), then compares each node's centre
|
and height (wrap height − 20px), then compares each node's centre against
|
||||||
against it. A node gets `.lit` when the fill reaches it and stays lit
|
it. A node gets `.lit` when the fill reaches it and stays lit (completed
|
||||||
(completed milestones, no flicker on small scroll jitter).
|
milestones, no flicker on small scroll jitter).
|
||||||
- Reduced motion: fill 100%, every stage gets `.lit`, and the global
|
- The same scroll-linked logic runs under reduced motion, so nodes still
|
||||||
reduced-motion rule stops all animations.
|
respond; only the CSS animation/transitions are stopped. The previous
|
||||||
|
reduce branch force-lit every node and filled the spine to 100%, which made
|
||||||
|
the path look pre-completed.
|
||||||
|
- Recomputes on `load` and via `ResizeObserver` as well as scroll/resize, so
|
||||||
|
late font/layout shifts do not leave the fill or nodes out of sync.
|
||||||
|
|
||||||
## Tuning
|
## Tuning
|
||||||
|
|
||||||
- Peacock travel: `.hero-peacock { --bob: 5px; }` in `global.css` (total px,
|
- Peacock travel: `.hero-peacock { --bob: 6px; }` in `global.css` (total px,
|
||||||
split half above and half below the resting position).
|
split half above and half below the resting position).
|
||||||
- Peacock tempo: `.hero-peacock { --bob-speed: 7s; }`.
|
- Peacock tempo: `.hero-peacock { --bob-speed: 6s; }`.
|
||||||
- Backdrop drift: the `animation` duration and `@keyframes aura-*` translate /
|
- Backdrop softness: the `filter:blur(...)` radius on `.aura`, the two
|
||||||
|
`radial-gradient` layers per aura, and the `@keyframes aura-*` translate /
|
||||||
scale values for `.aura.a1/.a2/.a3`.
|
scale values for `.aura.a1/.a2/.a3`.
|
||||||
|
|
||||||
## Verified (headless Chromium via CDP, dev server)
|
## Verified (headless Chromium via CDP, built site)
|
||||||
|
|
||||||
- Auras report their own `aura-*` animations and their transform matrices change
|
- Auras report their own `aura-*` animations and their transform matrices change
|
||||||
over time.
|
over time; computed `filter` is `blur(100px)` at 1440px.
|
||||||
- Peacock `animation-name: peacock-bob`, duration 7s, `--bob: 5px`; sampled
|
- Peacock `animation-name: peacock-bob`, duration 6s, `--bob: 6px`; sampled
|
||||||
range 3.65px over a partial cycle (the full cycle is 5px).
|
range 4.88px over a partial cycle (the full cycle is 6px).
|
||||||
- Scrolling the path lit nodes in order (`0000 → 1000 → 1100 → 1110 → 1111`)
|
- Scrolling the path lit nodes in order (`0000 → 1000 → 1100 → 1110 → 1111`)
|
||||||
while the spine fill advanced 0→100%.
|
while the spine fill advanced 0→100%, in both normal and reduced-motion mode.
|
||||||
- Reduced motion: peacock/aura animations `none`, all four nodes lit, fill 100%.
|
- Reduced motion: peacock/aura animations `none` and the fill starts at 0%; nodes
|
||||||
|
stay unlit until scrolling reaches them. This is what the user saw as
|
||||||
|
"peacock stays still / nodes lit by default".
|
||||||
- 390px: no horizontal overflow.
|
- 390px: no horizontal overflow.
|
||||||
- Footer "Project" computed `background-image` is the iridescent
|
- Footer "Project" computed `background-image` is the iridescent
|
||||||
`linear-gradient(120deg, …)`, `background-clip: text`, text fill transparent.
|
`linear-gradient(120deg, …)`, `background-clip: text`, text fill transparent.
|
||||||
@@ -63,5 +71,8 @@ Date: 2026-11-01
|
|||||||
|
|
||||||
- Nodes intentionally stay lit after the fill passes them; scrolling up shrinks
|
- Nodes intentionally stay lit after the fill passes them; scrolling up shrinks
|
||||||
the line but does not erase completed stages.
|
the line but does not erase completed stages.
|
||||||
|
- The peacock/aura motion is intentionally off when the visitor (or the
|
||||||
|
developer's machine) has `prefers-reduced-motion: reduce`. If the bob looks
|
||||||
|
frozen, check that setting first.
|
||||||
- Screenshots and verification scripts live in `/tmp/opencode` and are not
|
- Screenshots and verification scripts live in `/tmp/opencode` and are not
|
||||||
committed.
|
committed.
|
||||||
Reference in new issue
Block a user