# Loopborne Knitworks

> **Category:** Hero Section
> **Effect:** Twelve latch needles rise beneath an orbiting yarn guide and draw linked stitches into three shaped fabric tubes through synchronized take-up rollers.
> **Platform:** Codex (`codex`)
> **Model:** `codex-subagent` — Codex subagent · browser verified
> **License:** Free / MIT — copy, paste, ship.
> **Self-contained:** yes — one `index.html`, no build step, no external media.

---

## 🎬 Live demo

Open [`public/demos/loopborne-knitworks/index.html`](../public/demos/loopborne-knitworks/index.html) — implemented by a fresh Codex subagent from the exact prompt below, then checked in a browser. The identifier describes the authoring workflow; it is not a separately verified model version.

## ✅ Verification

<!-- VERIFICATION:START -->
**Verified:** 20/20 checks passed — ✅ fully passing
**Verified at:** 2026-11-11T13:39:25.842Z
**Demo size:** 21.6 KB (single self-contained file)

### Provenance

| Field | Value |
|---|---|
| Platform | Codex — `original authored example` |
| Model | `codex-subagent` |
| Prompt sent | — characters (sha256:—) |
| Prompt tokens | 0 |
| Completion tokens | 0 |
| Reasoning tokens | 0 |
| **Total tokens** | **0** |
| API calls | 0 (0 attempts) |
| Latency | 0.0 s |
| Finish reason | `—` |

### Automated checks

| | Check | Observed |
|---|---|---|
| ✅ | demo file exists and is non-trivial | 22087 bytes |
| ✅ | window.__DEMO__.ready became true | 6 frames, effects: twelve phased latch needles, orbiting yarn guide, twelve connected stit |
| ✅ | animation loop is live (>= 20 frames / 1.2s) | 72 frames in 1.2s |
| ✅ | window.__DEMO__.errors empty | clean |
| ✅ | canvas paints non-blank content | mean 8.89, stdev 30.89, coverage 0.0879 |
| ✅ | canvas spans the viewport width | 1440px of 1440px |
| ✅ | canvas keeps repainting (content changes) | hash 1922657128 -> 647197580 |
| ✅ | exactly one <h1> with text | "Every loop
has a next." |
| ✅ | header/main/footer landmarks present | header,main,footer |
| ✅ | interactive elements have accessible names | 0 unnamed |
| ✅ | document has <title> | Loopborne Knitworks — An original study |
| ✅ | document declares lang | en |
| ✅ | no horizontal overflow @ 390px | clean |
| ✅ | no horizontal overflow @ 768px | clean |
| ✅ | no horizontal overflow @ 1440px | clean |
| ✅ | desktop is one viewport (no scroll) | doc 900 vs viewport 900 |
| ✅ | no console errors | clean |
| ✅ | no uncaught page errors | clean |
| ✅ | no failed network requests | clean |
| ✅ | reduced-motion: page still renders content | h1=1 textLen=504 pageErrors=0 |

_Cross-check pending._

*Reproduce: `node tools/runner.mjs --jobs data/jobs.json` then `node tools/verify.mjs --only loopborne-knitworks`.*
<!-- VERIFICATION:END -->

## 📋 Prompt

```text
ORIGINAL DESIGN BRIEF — Loopborne Knitworks

Create a polished animated hero section for this fictional brand.

EXACT COPY
Brand: Loopborne Knitworks
Eyebrow: A STUDY IN CONTINUITY
Heading with intended line break: Every loop / has a next.
Body: Watch a circular knitting bed turn a single yarn path into a shaped sleeve, with needles, loops and take-up moving together.
Main action: Inspect the loop system
Three choices: Straight / Waisted / Flared
Palette: background #EEE8DA; foreground #242A29; muted text #5C625D; accent #B65B35.

ART AND GEOMETRY
Draw a compact circular knitting machine as a tall object with an open center. A bronze needle bed rests on three green legs, with its front quadrant lowered as a permanent sectional reveal. Twelve silver latch needles occupy separate vertical slots. Each has a hinged latch, curved hook and rectangular shank disappearing into its guide. Arrange rear needles above the rim and near needles against the cutaway so their elevations remain distinguishable.

A yarn cone stands at the left on a short spindle. Its yarn passes through a fixed eye, spring tensioner and rotating guide arm attached to a rear mast. Connect the arm to the current knitting position with a taut segment and a bent bight around the active hook. The substantial hanging fabric tube contains twelve stitch columns, with separate front and rear loop paths. Use ivory yarn, a dark tube interior and ochre contact shadows. Straight makes a cylindrical sleeve; Waisted narrows in the lower third before recovering at the hem; Flared broadens toward the bottom. Preserve corresponding mesh points and stitch relationships.

Two broad rubber take-up rollers sit below the tube in visible bearings and feed its lower edge into a collection cup. The fabric may gather into three restrained folds, all attached to that edge. Show complete feet, bearing caps, tension spring and mast rather than hiding their connections behind cloth. At maximum loop length the raised hooks remain below the carrier. At maximum flare the hem remains within the cup, with no fabric crossing through roller axles. Bound the yarn cone, highest hook and lowest foot inside a generous portrait stage, including an eight-pixel minimum internal margin.

LAYOUT AND TYPOGRAPHY
Place the machine on the left two thirds of an ivory spread and a narrow text column on the right. Use a large system serif for the headline and plain system sans for the body and labels. A thin rule above the eyebrow and another below the action create the rhythm of a specimen page. A grounded caption can align to the needle bed, while primary copy remains outside the illustration. Reserve the full lower edge for the larger control dock and keep the fabric hem well above it. On mobile put the headline first, followed by a portrait artwork stage and a clear control stack with forty-four-pixel targets and fifteen-pixel labels.

CHOREOGRAPHY
Drive the scene with one deterministic twelve-second clock. The guide completes one revolution per cycle. Every needle receives the same rise, latch opening, capture and descent curve shifted by its angular position. At phase zero the front needle begins capture; at one quarter the right group descends; at one half the rear group captures; at three quarters the left group completes its loops. Take-up rollers turn continuously and rows move down by one repeating row interval, recycling only beneath the cup and behind the opaque bed. The cone and tension eye respond to guide-path length, providing a second coordinated moving system throughout. Interpolate state silhouette coefficients over 900 milliseconds from the current blend, then reconstruct shared loops and roller gaps. Do not fade between whole tubes. Loop-length changes update needle stroke, guide clearance and rows while paused, without advancing the clock.

DELIVERABLE AND CONTENT
Produce a complete, runnable index.html with inline CSS and JavaScript. This is an original fictional brand concept for a free design-prompt library. Use the brand and copy supplied above, not any other site's wording. Do not add testimonials, fabricated statistics, paywalls, account forms, model names or irrelevant pipeline details. The only external resource permitted is an optional Google Font; a strong system stack is preferred. Procedural live art is the deliverable, so do not substitute screenshots, images or videos for it.

LAYOUT AND TYPE
At 1440x900 the composition is a single cinematic frame with a real header, nav, main and footer. Reserve about 80px for header, 110px for controls, and the remainder for the hero and scene. Use a maximum content width of 1320px and 5.5vw outer gutters. Text is a separate semantic HTML layer above an aria-hidden full-viewport canvas. Keep body copy at least 15px, muted text contrast readable, and the main headline between 64 and 104px at desktop. At widths below 760px use 24px gutters, a 42-54px headline and a real vertical flow. Hide optional desktop navigation, not the title or primary action. Let the page scroll vertically on small screens when controls need space. Never crop a headline to satisfy the desktop composition.

WORKING INTERACTIONS
Use the primary action to focus or open the selection area, not to navigate to a fake app. Three visible choices switch the scene's meaningful state and update a live caption. Set aria-pressed on the selected choice. Include Pause motion / Resume motion and Reset buttons. Reset restores the first choice, neutral pointer and initial composition. All buttons work with keyboard. Show a clear focus ring, preserve ordinary cursor behavior and make touch targets at least 44px. Add a brief footer disclosure that this is a concept demo with example content.

MOTION AND PERFORMANCE
Use one requestAnimationFrame loop, performance.now deltas, cached dimensions, a capped devicePixelRatio of 1.5, and deterministic seeded geometry. Never read layout inside a hot drawing loop. Use a ResizeObserver or resize handler to update canvas dimensions and cached positions. Use pointermove only to update target values; ease the targets in the animation loop. Draw all visual motion in Canvas or transform/opacity, not layout properties. On document.hidden skip expensive painting; resume without a large time jump. Honor prefers-reduced-motion both at startup and when the preference changes: freeze continuous motion, remove entry translation and keep content and selectors usable. The pause control must correspond to visible motion. Maintain window.__DEMO__ readiness, frames, effects, errors and selected state so the example can be checked.

FAILURE GUARDS AND REVIEW
Initialize the canvas and draw an attractive first frame even if motion is disabled. Keep HTML text and actions visible if JavaScript fails. A scene must never be required to read the copy. Test 390x844, 768x1024, 1024x640 and 1440x900; test pointer movement, each scene option, pause, reset, keyboard focus and reduced motion. Confirm one h1, named controls, real semantic landmarks, no horizontal document overflow, no console errors and no failed resources. Keep all colors in the supplied family. Include no external image, animation, icon or UI framework dependency. Return the entire HTML file, without placeholders or omitted code.


COPY-AND-PASTE REPRODUCTION CONTRACT
The complete prompt is the only input. Do not require an attached image, prior chat,
repository, local file, API key, remote image, external script or font download.
Use only inline HTML/CSS/JS and local system fonts. All art must be your own procedural
implementation of the brief. The result must work offline from file://.

Use these exact stable hooks so the output can be independently tested:
- One aria-hidden canvas spanning the full viewport width; clip its drawing to a
  dedicated .visual art region whose bounds you cache on resize. Never overlap text.
- Exactly three real buttons with data-choice="0", "1", "2" inside #choices.
  aria-pressed reflects the selection. A visible #caption with role="status" includes
  the full selected label plus a short explanation.
- #explore is the main CTA; it focuses [data-choice="0"] and scrolls the controls into
  view. It must not open a fake app or submit information.
- #pause toggles Pause motion / Resume motion and aria-pressed. It freezes every pixel
  of all continuous effects and stops the requestAnimationFrame loop after one paint.
  Do not leave CSS, timers, eye blinks, shaders, particles or reflections running.
- #reset restores selected=0, the initial clock, neutral pointer, and pace=1, while
  preserving whether playback is paused. It renders that complete initial arrangement.
- #pace is a labeled, keyboard-accessible range input min=.5 max=1.5 step=.1 value=1,
  with visible #pace-value output. It scales the accumulated animation clock.
- window.__DEMO__ must additionally expose selected (number), paused (boolean),
  speed (number), clock (number) and transition (0..1 blend, 1 when settled).
  Keep those fields current after every action. Start ready only after actual drawing.

State timing: on a running selection, save the previous state and start a ~900ms blend;
interpolate or crossfade as the design requires, with visible intermediate frames.
While paused or reduced-motion is active, choices update the complete selected still
immediately. Pausing settles any in-progress transition, then stops all further frames.
Respect reduced motion at startup AND on media-query changes; avoid animated entrance
effects then. Selection, Reset and resize may request one frame while paused, followed
by silence. Cache resize observations so that they do not cause an endless paint loop. When sizing an absolute canvas, measure the actual content wrapper, excluding the canvas itself; stale canvas height must never keep the desktop page at its previous mobile height.
Compute dt from requestAnimationFrame timestamps and cap it at 40ms. Reset the previous
timestamp when resuming. Keep the DOM readable even if drawing fails.

Layout: desktop 1440x900 must fit in one viewport. At 768x1024 and 390x844, use real
vertical flow when needed, with controls visible by scrolling and no horizontal overflow.
Do not hide the pace control on tablets. Every button must have BOTH min-width:44px AND min-height:44px; prevent flex shrinking from reducing either dimension. Give the
art enough scale to remain recognizable on phones, and avoid clipping long headings.
Use roughly 80px header and 120px footer at desktop; reserve the rest for copy and art.
Do not spend the composition on empty space or shrink the artwork into a tiny diagram.
Keep body/dock text contrast >=4.5:1; use the supplied muted color rather than low opacity. Never fade meaningful text with opacity. Preserve readable labels and 15px body text.
Use an original small brand mark, deliberate typography, one primary action and clean
controls. Include a brief 'Original concept / example content' disclosure.

Before returning, internally check script syntax, initialization order, correct canvas
scaling after resize, all three state geometries, pause/resume, Reset, keyboard focus,
reduced motion and mobile sizing. Return the complete working HTML without placeholders.


FINAL LAYOUT CROSS-CHECK
Leave enough internal padding around the h1 for glyph ascenders and descenders.
At 390x844, 768x1024, 1024x640 and 1440x900, both scrollWidth and scrollHeight of
the heading must fit its client dimensions within 2px. Do not clip typography
to achieve this. Reflow or reduce type at intermediate widths where needed.
Check a mobile-to-desktop resize sequence, not just fresh loads. Keep every
specified object complete inside its art region and all controls reachable.
For three-dimensional scenes, draw complete shaded faces and correct occlusion;
thin wireframes or floating disconnected parts must not replace solid objects.
Each selected state needs its own complete composition, recognizable when paused.

ADVANCED SCENE AND INTERACTION CONTRACT
Use the Canvas2D API (CanvasRenderingContext2D) for the procedural scene.
This is a complex but coherent procedural composition. Build all named assemblies
and preserve their actual causal relationships, including during transitions.
Assemblies: Twelve slotted latch needles; Circular bronze needle bed; Orbiting yarn-guide arm; Supply cone and tension eye; Twelve-column knitted tube; Paired take-up rollers; Collection cup and supporting legs.
Coupled relationships: One traveling cam coordinate raises each needle and opens its latch according to the same local phase.; The guide supplies the active hook; its connected yarn bight and new stitch row follow the needle geometry.; Take-up advances rows by exactly the knitted row spacing while paired rollers counter-rotate at matching surface speed..
Prevent these concrete failures: Keep twelve fixed columns and fixed loop vertex identities to preserve stitch topology through transitions.; Clip rear needles and rows behind the bed; distinguish near yarn crossings with contact shadows.; Recompute guide clearance with loop length so long bights cannot strike the carrier arm..

INDEPENDENT GEOMETRY CONTROL
Visible user label: Loop length
Required geometric behavior: Map u=slider/100 to bight length L=6+4u: 6, 8 and 10 world units at 0%, 50% and 100%. Needle travel is exactly 2L, yarn-guide clearance above the resting crown is 2L+8, and fabric row spacing is L+4. Rebuild descending loops and take-up throat height from these values in every state. Straight keeps lower fabric radius forty, Waisted reaches a minimum thirty, and Flared reaches fifty-six. All retain twelve columns and identical stitch connectivity. Minimum row spacing is ten and minimum tube radius thirty, leaving room for two-unit yarn without collapsed loops.
Use #parameter, a real labeled range input min=0 max=100 step=1 value=50.
Show its percentage in #parameter-value. Expose the numeric value as
window.__DEMO__.parameter. It must visibly change the actual canvas geometry in
ALL three states, with coherent valid endpoints at 0,50,100. Changing it while
paused must repaint once without advancing clock or resuming playback. Use
bounded mappings that never disconnect joints, invert faces or collapse objects.

CYCLE INSPECTION
The whole scene runs on one deterministic 12 second periodic clock. Use #phase, a
real labeled range min=0 max=12 step=0.01 value=0, labeled 'Cycle position', with
visible #phase-value in seconds. Expose window.__DEMO__.cycleSeconds=12.
When this slider receives input, pause playback, settle any state transition,
set clock to the requested seconds, update the actual composition and render
once. Clock 12 is the same loop boundary as 0. While playing, keep this slider and
its readout synchronized with clock modulo 12. All motion must derive from that
clock: shafts, moving material, riders, lighting, reflections and smaller parts.
Scrubbing to 0, 3, 6, 9 and 11.99 seconds must produce valid, visibly moving states.
The independent geometry parameter is preserved when selecting a state or
scrubbing. Reset additionally restores parameter 50 and cycle position 0 while
preserving whether playback is paused. Keyboard Arrow keys work on both sliders.

CONTINUITY AND RELIABILITY
Use one stoppable requestAnimationFrame loop, no timers or independent CSS motion.
Select a new state by interpolating actual shared geometry from the CURRENT
visible configuration over 900ms, even when the previous transition is unfinished.
Do not crossfade two copies of a shared machine, landmark or scene. Independently
appearing/disappearing objects may fade. Keep joints, contacts, material routes,
supports and printed surfaces attached during all intermediate configurations.
Pause settles the selected state and stops all frame requests; parameter, scrub,
resize and selection may request exactly one paused repaint. On document.hidden
cancel the loop. On visibility restoration, reset the timestamp before resuming
so no large time jump occurs. Zero NaN/Infinity geometry or stale resize state.

GEOMETRY FRAMING AND INSPECTION
Compute scene bounds from projected geometry for every paint, before clipping;
do not use the viewport itself as a fake object bounding box. Expose conservative
primary-object bounds as window.__DEMO__.artBounds={x,y,width,height} and the
cached clipping region as window.__DEMO__.artRegion={x,y,width,height}, both in
CSS document coordinates. Include full silhouettes, attached parts and material
routes. The region must enclose artBounds with at least 8 CSS px margin at every
state, parameter 0/50/100, cycle phase and tested viewport. Camera fitting must use
all possible extents, avoiding sudden zooms when only a small part moves.
Keep the canvas transparent outside actual procedural artwork. Do not fill the
entire art region with a rectangle to hide clipping. Backgrounds belong in CSS.
Diffuse shadows may extend beyond primary bounds, but opaque scene geometry may
not touch the clipping boundary. Never read pixels/layout inside a hot draw loop.

FINAL PRODUCT CHECK
Give the larger control dock enough space. Reserve fixed widths for changing
readouts so control updates never resize the artwork or shift the page. All body, caption, button and slider
labels/readouts are at least 15px with contrast>=4.5:1. Every button remains at
least 44×44px and the Reset label has real internal padding. At 1440×900 fit one
viewport; at 390×844, 768×1024 and 1024×640 use real flow with all controls reachable.
Preserve literal spaces between heading spans; visible and accessible copy must
match exactly. Draw complete correctly occluded solid objects, not disconnected
lines. Make at least two coupled moving systems visibly active, not just a clock
counter or imperceptible highlight. Test rapid 0→2→1 state changes, mid-blend Pause,
Reset, parameter extremes, every quarter-cycle, reduced motion and mobile→desktop
resizing. Confirm the fully paused image is stable. Return complete offline HTML.


---

TECHNICAL CONTRACT (non-negotiable):

1. Deliver ONE single file: a complete, valid `index.html`. No build step, no bundler,
   no framework, no package install. It must open correctly by double-clicking the file
   and also over http://.
2. Vanilla only. No React, no Tailwind CDN, no GSAP, no Three.js, no jQuery, no Lottie.
   Plain HTML + CSS + modern JavaScript in <style> and <script> tags.
3. NO external media. No .mp4, no .webm, no .gif, no remote images, no base64 blobs of
   photos. Every visual must be generated procedurally with CSS gradients, SVG, or
   <canvas>. This keeps the page free to host and impossible to break with a dead link.
4. Google Fonts is the ONLY permitted network request, and it must be declared with a
   <link rel="preconnect"> plus a system-font fallback stack so the page still looks
   intentional offline. If you prefer, skip it and use a pure system stack.
5. Responsive and correct at 390x844 (phone), 768x1024 (tablet) and 1440x900 (desktop).
   No horizontal scrollbar at any of those widths. Nothing may overflow its container.
6. Accessibility: exactly one <h1>; real <header>/<main>/<footer>/<nav> landmarks; every
   interactive element is a <button> or <a> with an accessible name; visible :focus-visible
   ring; body text contrast ratio >= 4.5:1 against its background.
7. Motion safety: wrap all continuous motion in
   `@media (prefers-reduced-motion: reduce)` rules that reduce it to a static or
   near-static state. The page must remain fully readable and usable with motion off.
8. Performance: no layout thrash. Cache DOM reads, batch writes inside a single
   requestAnimationFrame loop, use transform/opacity for animation, and never allocate
   inside the hot loop. Target 60fps on a 2019 laptop. Total file under 90 KB.
9. Runtime telemetry hook (used by the automated verifier — implement it exactly):
   at the top of your script define
     window.__DEMO__ = { name: '<slug>', ready: false, frames: 0, effects: [], errors: [] };
   then set `ready = true` after the first paint of your main effect, increment
   `frames` once per animation frame inside your rAF loop, and push the name of each
   implemented effect into `effects`. Add a `window.addEventListener('error', ...)`
   handler that pushes messages into `errors`. Do not rename these fields.
10. Zero console output in the happy path. No console.log left behind. No uncaught
    exceptions, no failed network requests.

RESPONSE FORMAT:
Return ONLY the raw HTML inside a single ```html fenced code block. No explanation, no
preamble, no commentary before or after the fence. The file must be complete and
immediately runnable — never truncate, never write "// rest of code here".
```

---

*LandingPagePrompts Prompt Library — free, verified, model-attributed.*
