Queue
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardQueue(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-queueAbout this component
An approvals pile in a soft tray. Approve throws the top request off to the right with a green edge, Decline to the left with a red one, and the next request rises into its place. When the pile is empty it says so, then the next batch arrives.
Triggers
- Click
- State change
- Card
- Gradient
- Spring
- Keyframe
Techniques
- CSS variables
- CSS transition
- Keyframes
- Gradient
- Filter
- mix-blend-mode
- Pseudo elements
- State machine
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
Decline and Approve are native buttons with visible focus rings, disabled while the pile is empty. Only the top request is exposed to assistive technology (the cards under it and the one flying away are aria-hidden) and the waiting count is an aria-live region.
Reduced motion
Cards swap places at once without the throw.
Use it in anything you build, commercial and client work included. Licence
More cards
See allAll systems normal99.98%
- Up
- Up
- Up
- Up
- Up
- Up
- Up
- Up
- Up
- Slow
- Up
- Up
- Up
- Up
- Up
- Up
- Up
- Up
- Up
- Up
- Up
- Up
- Slow
- Up
- Up
- Up
- Up
- Up
- Up
- Up
Activity
659 commits in 16 weeks