Motionz

Pill Drop

Glossy capsules rain into a physics pile, then chosen ones fly out to where you point them.

remotionmatter-js@types/matter-js

Installation

Terminal
npx shadcn@latest add https://motionz.dev/r/pill-drop.json

Props

NameTypeDefaultDescription
pillsPill[]–Gloss capsules ({ kind: "gloss", tone, w, h }) and labelled pills ({ kind: "logo", name, h }).
atnumber–Frame the first pill appears.
everynumber–Frames between pills.
framesnumber–Frames to simulate. The pile holds its last pose after.
seedstring–Same seed, same pile, in every render tab.
spreadnumber260How far above the frame pills start, px.
gatherPillGather–Fly logo discs out of the pile: { at, frames, to(pill, i), scale }.
colorstring"#1d1d1f"Text colour on logo pills.