%78 percent on Thursday
Transit
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardTransit(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-transitAbout this component
A flight status card on black: two invented airport codes stand in a dot matrix of lit LEDs, a lime capsule carries a plane along the route and the times sit under the codes. Press the swap key and the codes flip the other way round dot by dot, column after column, the times trading places; drag the capsule's lit end or use the arrow keys and the plane moves along the flight while the hours left count down.
Triggers
- Card
- Glow
- Neon
- Click
- State change
- Mouse tracking
Techniques
- CSS variables
- CSS transition
- Transition delay stagger
- Event position
- Radial gradient
- SVG
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
The track is a role='slider' labelled Flight progress with aria-valuenow in percent and an aria-valuetext that reads the hours and minutes left or Landed; the swap key is a native button labelled Swap direction with aria-pressed; each code is a role='img' named with its letters.
Reduced motion
Reduced motion removes every transition, so swaps and drags are cuts.
Use it in anything you build, commercial and client work included. Licence