Component · Interactive components

3D lanyard with a swinging conference badge

by Informeek Studio 11 November 2026
Live Grab the badge, throw it and let it swing

The prompt

Create a 3D lanyard for a fictional design conference, Platemark 2027, using three.js 0.160 as an ES module on a full screen transparent canvas over a near black page (#111015) with soft pink and blue glows. Left: a pink uppercase label, a heavy headline "Your badge is printed. Give it a swing." with the second sentence in grey, a short line of copy, a pink "Give it a swing" button and an "Add to wallet" toggle. Right, hanging from above the top edge: a hot pink strap (#ff3d7f) with the event name printed along it, drawn as a ribbon mesh rebuilt every frame from 16 verlet rope points, and a rounded badge with a slot, a metal clip and a ring. Build the badge from a ShapeGeometry with a hole, front and back faces with canvas textures and an extruded edge. The front is an overprint design, pink, blue and yellow circles multiplied together, the attendee name Maren Solberg and a black "Speaker, Hall 3" band; the back lists three talk times. Simulate at 120 steps a second with 14 constraint passes. Drag to throw it, clamp reach and speed so it never loops over, twist it from its sideways speed so the back shows, and add a light idle breeze. On phones and tablets centre the badge at the top and the text at the bottom.

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 printing your own event, name and colours on the badge and strap.

About this 3d badge

A 3d badge on a lanyard is a playful way to hand someone their ticket. Here a conference badge hangs from a hot pink strap at the top of the screen. Grab it and it follows your hand, throw it and it swings, twists round to show the talk times printed on the back, then settles and sways gently in a breeze while you read.

The physics is simple and cheap. The strap is a chain of sixteen points joined by fixed lengths, solved many times a second, and the badge hangs from the last point. A ribbon is rebuilt along the chain every frame so the strap bends naturally, and the badge turns around its own axis according to how fast it is moving sideways. The reach and speed of a throw are capped, so even a wild fling never wraps the strap over the top.

Why the prompt works

  • It names the simulation, verlet points, constraint passes and a fixed step.
  • It builds the badge properly, a shape with a slot plus two printed faces.
  • It adds the twist, which is what makes the back worth printing.
  • It sets limits on a throw so the toy cannot break itself.

Where to use it

Event and conference sites, ticket confirmations, team pages and portfolio intros that want one memorable, touchable moment.

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

Faceted crystal orb with a 3D glass effect

Live
Component · Interactive components

Stretch knit cloth simulation

Live
Component · Interactive components

macOS style dock with magnification