Flight Tracker, animated React component
A live flight card: a plane banks along a dotted arc while the flown part fills in behind it, and the status line counts down to landing. Expand it for altitude, speed and distance left.
- Pro
- Cards
- Spring
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
Track my flightMK 214
NYC8:30 PMLON8:40 AM
On time
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| from | string | "NYC" | Departure airport code. |
| to | string | "LON" | Arrival airport code. |
| flight | string | "MK 214" | Flight number in the top-right corner. |
| departs | string | "8:30 PM" | Departure time under the origin code. |
| arrives | string | "8:40 AM" | Arrival time under the destination code. |
| minutes | number | 410 | Total flight time; drives the "Landing in N min" countdown. |
| miles | number | 3459 | Route length; drives the remaining distance in the details. |
| autoplay | boolean | true | Flies the plane along the arc on a loop (about 22 s per flight). When false it stays at 35% of the route. |