With Mira Sol · Sat 23 Nov
String Art
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardStringArt(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/card-string-artAbout this component
A workshop card whose picture is string art: sixty pins round a hoop and a thread from every pin to the pin at twice its number, which draws a cardioid. Hover and the multiplier slides from 2 to 3, every thread sweeping to its new pin, so the heart melts into a three-lobed nephroid and back.
- Dependencies
- None
- Difficulty
- Intermediate
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers4
- Hover
- Morph
- Draw
- Card
Techniques3
- SVG
- requestAnimationFrame
- SVG stroke
Accessibility
Keyboard and screen readers
An article labelled with the workshop; it takes focus, and focus or a tap changes the pattern as hover does. The string art is aria-hidden and the multiplier is shown as text.
Reduced motion
The pattern switches without sweeping.
Use it in anything you build, commercial and client work included. Licence
More cards
See all- ARRIVED SAFELY STOP
- SEA COLD BUT LOVELY STOP
- LOVE TO ALL STOP
Together with their families
Ines&Theo
request the pleasure of your company
Saturday 6 June 2026
Harlow Barn, Wiltshire
Rhea Okafor
Product designer
rhea.design
+44 7700 900 412
Pace wheel
Turn the wheel to your pace
min/kmmin/mi