← Lab003 · Spider web loader

Lab 00329 Oct 2026

Spider web loader

A loading bar spun by a spider. The progress is the web; tear it and the loader goes backwards until the spider has re-spun every thread.

How it works

The web is planned the way an orb weaver builds one: mooring lines to the card’s edges, a frame, radials out from the hub, then the sticky capture spiral from the outside in. The loader’s progress is simply how much of that silk is spun.

Every thread is a chain of beads about 12 px apart, moved by verlet integration and held by rope constraints: silk pulls, it never pushes. That one rule is why a cut thread snaps back, curls and sags instead of staying rigid.

A fast swipe cuts every thread it crosses. The cut thread counts as unspun, so the bar goes backwards. The spider always works on the first unspun thread in build order, which means it fixes the frame before the spiral, and it walks there over the silk that’s still standing, using the shortest path. A slow pointer only bends the silk aside.

Threads glint where they run square to the light (your pointer), the same reason real webs show rings of light around a lamp. The capture spiral carries glue droplets. The spider walks on eight legs that plant and step in alternating sets of four, and when the web is done it sits on the hub head down, as orb weavers do.

Recreate it

A prompt you can paste into a coding agent to build your own.

Build a loading bar that a spider spins as a web, as a single HTML file with Canvas 2D.

- Plan the web like a real orb weaver: mooring lines to the container's edges, a frame, radials from the hub, then a capture spiral from the outside in. Progress = the length of silk spun / total.
- Make every thread a chain of verlet particles about 12 px apart, joined by rope constraints that only pull, never push.
- The spider always spins the first unspun thread in build order. It walks there along the threads that exist (shortest path), then lays the new thread from end to end.
- A fast pointer swipe cuts every thread it crosses: the halves recoil and sag, the thread counts as unspun, and the progress bar drops until the spider repairs it. A slow pointer just pushes the silk aside.
- Draw threads brighter where they run perpendicular to the pointer (the halo glint real webs have), add glue droplets on the spiral, and give the spider 8 legs with procedural stepping.
- Use a real progressbar role, let Enter tear a thread, and skip the spider for reduced motion.

How it happened

The real conversation, shortened. Charul’s words are in quotes; everything else is a summary of what happened.

  1. Charul

    Halloween is coming, let’s build something around it.

  2. Claude

    Pitched four: carve a pumpkin, a candlelit UI, a spider web loader, and an Ouija text input.

  3. Charul

    Picked the spider web loader: a spider spins a real physics web as the progress bar, the cursor tears threads, and the spider scuttles over to repair them.

  4. Claude

    Built the web as verlet chains with rope constraints, the orb-weaver build order, cutting, and a spider that pathfinds over the surviving silk to re-spin what’s torn.

  5. Claude

    Tuned it after watching it run: the web sagged too much, so the silk got lighter and tighter; the spider ran too fast for its legs, so it now moves at a scuttle they can keep up with.