Component · Interactive components

Rope physics yarn curtain in a doorway

by Informeek Studio 11 November 2026
Live Move through the curtain or drag across it

The prompt

Build an open weekend hero for a fictional woollen mill, Loomside Mill, with a curtain of hand dyed yarn in a doorway that you push through. Use a linen card (#f5efe4 with a faint woven texture, 32px radius) with dark brown text #2c2219. Left: the serif headline "This way in, the looms are running" with the second half in woad blue #3d5f8f, three date chips and "Plan your visit" and "Send a breeze" buttons. Right: an arched wooden doorway (440px wide, 44 by 56) with a "Weaving shed" sign, and behind it a warm SVG interior with skeins and a loom. Over it a canvas draws about 44 strands in bands of three: madder #c4473a, pink, weld #e2b33c, cream, moss, woad, indigo and walnut. Each strand is a rope of 16 Verlet points pinned to a wooden rail, with gravity 1100, 0.985 damping, 6 constraint passes and 2 substeps. The pointer pushes points out of a 38px circle and passes on its speed, so strands swing and settle. Draw each strand as a 4.4px curve with a dashed lighter ply line and a wooden bead. A gentle breeze sways them, the breeze button adds a gust that decays, and after 3s idle an invisible hand walks through every 7s. On phones the doorway sits under the copy and touch drags push the yarn. Reduced motion stays still until touched.

Written by Informeek Studio to recreate this design. Prompts are not deterministic, so running it again gives a similar result, not an identical one.

Use it in three steps

  1. Copy the prompt with the button above.
  2. Paste it into your AI site builder, or any AI chat that writes code.
  3. Make it yours by dyeing the strands in your own colours and drawing your own room behind them.

About this rope physics curtain

Rope physics is usually a game developer’s tool, but it makes a lovely doorway. Each of the forty odd strands in this curtain is a short chain of points pinned to a wooden rail, pulled down by gravity and held together by fixed distances, so when the pointer pushes through they swing aside, knock into the air around them and slowly settle back. On a phone you drag a finger through the yarn and it parts the same way.

The strands are dyed in bands of madder, weld, woad and walnut, with a lighter dashed line for the twist of the ply and a wooden bead at each end, so they read as wool rather than lines. Behind them a warm weaving shed with a loom and hanging skeins gives you a reason to look through.

Why the prompt works

  • It gives the physics numbers, 16 points, gravity 1100, damping 0.985 and six constraint passes.
  • It explains the push, a 38 pixel circle that also hands on the pointer speed.
  • It keeps the curtain alive with a breeze, a gust button and an invisible visitor.
  • It describes the drawing, so the strands look like yarn and not wire.

Where to use it

Craft brands, open days, shop and studio entrances, and any hero that should invite a visitor in.

The prompt is shared under CC BY 4.0. Reuse it freely, including commercially, with a credit linking back to this page.

Keep exploring

More prompts like this

See the collection →
Live
Component · Interactive components

Stretch knit cloth simulation

Live
Component · Interactive components

macOS style dock with magnification

Live
Component · Interactive components

Swipe cards deck