329

Lanyard Badge

A badge on a lanyard swings down; grab and fling it, and fast flings flip it to the back

📌 Source: Framer Marketplace ↗ The preview is a recreation based on the original.

Card & groupEnterDrag & gestureHeadline & heroUI interactionCanvasCanvas Verlet

Hannah's Motion Library
Web motion effects × AI prompts

AI prompt

An ID badge on a lanyard is flung in from the top of the screen, swings like a pendulum and slowly comes to rest in the middle. The front has an avatar, a name, “VISITOR PASS” and a barcode, with a metal clip and hole at the top. Visitors can grab the badge and drag or fling it sideways; the cord pulls taut and slackens and the badge swings with it; the faster the horizontal fling, the more the badge spins around its vertical axis, showing its back (a big “PASS”) past halfway. When idle it gets a gentle nudge now and then. (Canvas 2D + Verlet: the cord is a chain of particles that only resist stretching, fixed at the top; the badge's swing angle comes from its top and bottom particles; the flip angle is a spring driven by horizontal speed, scaleX = cos(angle))

When you copy it, a note to “match the site’s existing theme colors” is added automatically, so you don’t need to specify colors.

How to use it

  1. Tap “Copy AI prompt”.
  2. Paste it into an AI such as ChatGPT or Claude, and tell it which element on your site to apply it to (for example, the homepage headline or a buy button).
  3. The AI writes code that matches your site’s colors. Paste it into your project, then fine-tune the timing and distances.

More card & group effects

346 more motion effectsText, buttons, cards, backgrounds, cursors… preview them all and copy AI prompts

Browse all effects →