PRO

Physics Tag Footer

A footer that fills itself by dropping. Scroll it into view and a stack of rounded labels rains in from above, tumbles off the walls, and piles up on the floor, each one grabbable and throwable afterwards. A top wall seals the box three seconds in so nothing can be flung back out, and dragged bodies are clamped so they cannot be dragged through a wall. Matter.js bodies driving real DOM elements.

Component

Scroll down to break the laws of web design

Install
npx shadcn@latest add https://ui.aryank.space/r/physics-tag-footer.json

Installs from ui.aryank.space. To add it by hand, copy the files in Usage below, or register the @compronents namespace via the docs.

Files

API
PropTypeDefaultDescription
tagsstring[]12 BLANK stack labelsLabels rendered as draggable pills. Each becomes one Matter.js body sized from its rendered box.
heroHeading / footerHeadingstringBLANK copyCopy for the first screen and the footer screen.
embeddedbooleantrueOwn the scroll container so it fits a bounded box. Set false to drive it from the window scroll.
Customize
tagstext

The labels that drop in as physics bodies.

heroHeading / footerHeadingtext

The lead-in headline and the headline behind the pile.

Dependencies
gsaplenismatter-js