3.1 KiB
3.1 KiB
Motion pass: drifting backdrop, lighting nodes, bobbing peacock
Date: 2026-11-01
Request
- The backdrop was two static gradient blobs; make it dynamic.
- The four nodes on the path spine were static; light each one as its stage is reached.
- The hero peacock was static; bob it up and down 4–6px, ease-in-out, and expose the amount for the user to tweak.
- Apply the
--iridgradient to the "Project" half of the footer wordmark.
Changes
src/layouts/Base.astro.ambientnow holds three<span class="aura a1/a2/a3">layers instead of one element with two background gradients.
src/styles/global.css- Auras are individual radial-gradient discs, each drifting and scaling on
its own clock (46s/58s/72s, negative delays,
alternate+ease-in-out). Onlytransformchanges, so the backdrop stays on the compositor. - Hero peacock gets
--bob:5px(total travel, i.e. ±2.5px) and--bob-speed:7s;@keyframes peacock-bobrunstranslate3dbetweencalc(var(--bob) * -.5)andcalc(var(--bob) * .5). - 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
node-pingring. The old.stage.in .noderule was replaced by.stage.lit .nodeso lighting follows the spine, not text reveal. - Footer
.ft .roller .b("Project") usesbackground:var(--irid)withbackground-clip:textand transparent text fill.
- Auras are individual radial-gradient discs, each drifting and scaling on
its own clock (46s/58s/72s, negative delays,
src/scripts/site.js- The spine handler now computes the fill tip against the spine's real top
(10px) and height (wrap height − 20px), then compares each node's centre
against it. A node gets
.litwhen the fill reaches it and stays lit (completed milestones, no flicker on small scroll jitter). - Reduced motion: fill 100%, every stage gets
.lit, and the global reduced-motion rule stops all animations.
- The spine handler now computes the fill tip against the spine's real top
(10px) and height (wrap height − 20px), then compares each node's centre
against it. A node gets
Tuning
- Peacock travel:
.hero-peacock { --bob: 5px; }inglobal.css(total px, split half above and half below the resting position). - Peacock tempo:
.hero-peacock { --bob-speed: 7s; }. - Backdrop drift: the
animationduration and@keyframes aura-*translate / scale values for.aura.a1/.a2/.a3.
Verified (headless Chromium via CDP, dev server)
- Auras report their own
aura-*animations and their transform matrices change over time. - Peacock
animation-name: peacock-bob, duration 7s,--bob: 5px; sampled range 3.65px over a partial cycle (the full cycle is 5px). - Scrolling the path lit nodes in order (
0000 → 1000 → 1100 → 1110 → 1111) while the spine fill advanced 0→100%. - Reduced motion: peacock/aura animations
none, all four nodes lit, fill 100%. - 390px: no horizontal overflow.
- Footer "Project" computed
background-imageis the iridescentlinear-gradient(120deg, …),background-clip: text, text fill transparent. npm run buildpasses (5 routes); no console/page errors.
Notes
- Nodes intentionally stay lit after the fill passes them; scrolling up shrinks the line but does not erase completed stages.
- Screenshots and verification scripts live in
/tmp/opencodeand are not committed.