No.195 · Backgrounds
Loom
A curtain of hanging threads swaying on a slow breeze, parting around your cursor like a hand through beads.
The prompt
Written for the variant you picked above: Frost
Create a background of fine vertical threads, like the warp on a loom or a beaded curtain seen in the dark. Every 9px, draw a thread from the top of the section to the bottom as a 28-segment polyline in one of a few low-opacity colours from the theme's thread list, cycled so the curtain has a woven rhythm. Threads hang from the top: a slow breeze sways them with two travelling sines whose amplitude grows toward the bottom (fixed at the top, free at the hem), each thread slightly out of phase, so the whole curtain ripples gently. The cursor parts them. Every point on every thread has its own horizontal spring (stiffness 0.06, damping 0.82). Points within ~130px of the pointer are pushed sideways away from it with a squared falloff, more strongly toward the hem, so moving through the curtain opens a soft lens-shaped gap that closes behind you as the threads drift back into line on their own springs. Render at ~30fps with Canvas 2D, pause offscreen, cap DPR at 2, and draw a still curtain under reduced motion. Take the thread colours and ground colour as props. Selected variant — Frost (frost): Threads in cream and frost blue at 8–20% opacity with an occasional lilac thread at 30% (rgba(239,232,220,.12), rgba(185,204,228,.2), rgba(239,232,220,.08), rgba(185,204,228,.14), rgba(200,185,234,.3)) on #0a080c. 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: The pointer pushes nearby thread points aside; they spring back when it passes. Motion: Breeze sway continuous; per-point springs (k 0.06, damping 0.82); ~30fps. Accessibility: Canvas is aria-hidden; reduced motion draws a still curtain with no tracking. Responsive behavior: Thread count follows container width; spacing and reach are props. Touch: Touch moves still part the threads where pointer events fire; otherwise the breeze carries it. 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
- The pointer pushes nearby thread points aside; they spring back when it passes.
- Motion
- Breeze sway continuous; per-point springs (k 0.06, damping 0.82); ~30fps.
- Accessibility
- Canvas is aria-hidden; reduced motion draws a still curtain with no tracking.
- Responsive
- Thread count follows container width; spacing and reach are props.
- On touch
- Touch moves still part the threads where pointer events fire; otherwise the breeze carries it.