
The send button
Buttons, Transitions, SVG
The flight status card of an invented travel app, Skylet: a dark glass widget with the two cities of the trip, the route as a thin dashed arc with the drawn plane moving along it, the part already flown lighting up behind it and a soft light following it inside the glass. The time left, the arrival time, the altitude and the speed roll digit by digit, the status pill goes from On time to Descending to Landed changing colour, width and word on a spring, and a tap opens the card into the details: terminal, gate and baggage belt.
A folder that runs on its own: index.html, style.css, script.js and the libraries from a CDN. The React and Vue tabs hold the same demo as a ready component, which switches its animations off when it leaves the page.
<!doctype html>
<!--
"Live flight card" from Animorio · https://animorio.com
License: free on your own sites and your clients’ sites, paid work included.
Not for resale, redistribution, templates or code collections · https://animorio.com/en/license/
-->
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>The live flight card with the route that moves on</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="stage" data-stage>
<!-- the live flight widget of a travel app, Skylet: a dark glass card with the two ends of the trip, the route as a
thin dashed arc with the plane moving along it, the travelled part lighting up behind it, the time left and the
arrival time rolling, altitude and speed in small, and a status pill that goes On time, Descending, Landed.
A tap opens the details: terminal, gate and the baggage belt. -->
<div class="shell" data-shell>
<article class="card" data-card aria-label="Flight Skylet 214 from Valmora to Elnhaven">
<span class="card__glow" data-glow aria-hidden="true"></span>
<span class="card__sheen" aria-hidden="true"></span>
<header class="head">
<div class="brand">
<svg class="brand__mark" viewBox="0 0 20 20" aria-hidden="true">
<path d="M2.5 14.5C6 7 12 4.5 17.5 5.5"/>
<path d="M13.6 3.2l3.9 2.3-2.4 3.8"/>
</svg>
<span class="brand__flight">Skylet 214</span>
<span class="brand__date">Sat 7 Nov</span>
</div>
<span class="pill" data-pill aria-live="polite">
<span class="pill__shine" data-pill-shine aria-hidden="true"></span>
<span class="pill__words" data-pill-words>On time</span>
</span>
</header>
<div class="ends">
<div class="end end--from" data-from>
<span class="end__code">VALM</span>
<span class="end__city">Valmora</span>
<span class="end__time"><span class="end__label">Left</span> 14:05</span>
</div>
<div class="end end--to" data-to>
<span class="end__code">ELNH</span>
<span class="end__city">Elnhaven</span>
<span class="end__time"><span class="end__label" data-eta-label>Arrives</span> <span class="roll" data-eta></span></span>
</div>
</div>
<div class="route" data-route aria-hidden="true">
<svg class="route__svg" data-svg>
<defs>
<linearGradient id="litGrad" data-grad gradientUnits="userSpaceOnUse">
<stop offset="0" class="lit-stop-a"/>
<stop offset="0.7" class="lit-stop-b"/>
<stop offset="1" class="lit-stop-c"/>
</linearGradient>
<filter id="litBlur" x="-20%" y="-200%" width="140%" height="500%">
<feGaussianBlur stdDeviation="2.6"/>
</filter>
</defs>
<path class="route__base" data-base/>
<path class="route__glow" data-lit-glow/>
<path class="route__lit" data-lit/>
<path class="route__tick" data-tick-a/>
<path class="route__tick route__tick--to" data-tick-b/>
<g data-shadow-pos><g data-shadow-rot><path class="plane plane--shadow" data-plane-shadow/></g></g>
<g data-plane-pos><g data-plane-rot><path class="plane" data-plane/></g></g>
</svg>
</div>
<div class="facts">
<p class="fact fact--left">
<span class="fact__label" data-left-label>Time left</span>
<span class="fact__value fact__value--big roll" data-left></span>
</p>
<p class="fact">
<span class="fact__label">Altitude</span>
<span class="fact__value"><span class="roll" data-alt></span> <span class="fact__unit">ft</span></span>
</p>
<p class="fact">
<span class="fact__label">Speed</span>
<span class="fact__value"><span class="roll" data-speed></span> <span class="fact__unit">km/h</span></span>
</p>
</div>
<div class="more" data-more id="flight-details">
<div class="more__inner">
<div class="cells">
<p class="cell" data-cell><span class="cell__label">Terminal</span><span class="cell__value">2</span></p>
<p class="cell" data-cell><span class="cell__label">Gate</span><span class="cell__value">B12</span></p>
<p class="cell cell--belt" data-cell>
<span class="cell__label">Baggage belt</span>
<span class="cell__value">
<svg class="cell__icon" viewBox="0 0 16 16" aria-hidden="true">
<rect x="3.5" y="4.5" width="9" height="8" rx="1.6"/>
<path d="M6 4.5V3.2c0-.5.4-.9.9-.9h2.2c.5 0 .9.4.9.9v1.3M3 14h10"/>
</svg>7
</span>
</p>
</div>
<div class="bags" data-cell>
<span class="bags__words">First bags on the belt</span>
<span class="bags__track"><span class="bags__fill" data-bags></span></span>
<span class="bags__eta" data-bags-eta>in 6 min</span>
</div>
</div>
</div>
<button class="toggle" type="button" data-toggle aria-expanded="false" aria-controls="flight-details">
<span class="toggle__face">
<span class="toggle__words" data-toggle-words>Gate and baggage</span>
<svg class="toggle__chev" data-chev viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 6.5L8 10l3.5-3.5"/></svg>
</span>
</button>
</article>
</div>
</main>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
<script src="script.js"></script>
</body>
</html>Change values, colours and text with the controls and watch the animation respond live. Or write in the code yourself. Then download the folder with your changes.
45 values to change
With the Animorio connector, Claude Code, ChatGPT, Cursor or VS Code take it from here, guide included, and fit it into your project. Paste this request:
Take “Live flight card” from Animorio and fit it into my siteThe route is a quadratic curve drawn in the real size of its box (the viewBox is its width and height in pixels, recalculated on resize), so the dashes and the stroke do not stretch. A table of 200 lengths turns progress into a position on the curve: the plane moves at an even speed even where the arc is steeper.
The lit trail is the first half of the curve split with de Casteljau at the plane's point: another quadratic with the same start, redrawn every frame. Its gradient is in page coordinates, from the departure to the plane: transparent at the start, blue, white at the tip. A blurred copy with an SVG filter gives it its haze.
The plane takes its angle from the curve's derivative, plus a sway of a degree and a half; its shadow moves away in proportion to the altitude and meets it on landing. A radial light inside the glass follows its point, converted from the arc's coordinates to the card's.
Each number is a row of slots aligned on the right: only the digit that differs changes, coming in from below with a back.out and a blur of a pixel and a half while the old one leaves at the top; the slot changes width if the letter is wider. The digits update at most every 0.5 s, so every change can be read.
On a change of status the pill tweens the CSS variable of its colour, goes from the old width to the new one with an elastic and the new word rises while a gleam crosses it. The details open by measuring the real height (height auto) and animating it with a back.out, with the three tiles staggered.
| Name | File | Default | What it changes |
|---|---|---|---|
START | script.js | 0.34 | Where the plane is along the route when the loop starts: 0 at the departure, 0.9 near the arrival. |
DESCENT_AT | script.js | 0.74 | The point of the route where the descent begins. |
FLIGHT_MIN | script.js | 215 | Minutes of the whole flight. |
EARLY_MIN | script.js | 4 | How many minutes earlier the arrival time becomes once the descent begins. |
CRUISE_FT | script.js | 36000 | The cruising altitude, in feet. |
CRUISE_KMH | script.js | 842 | The cruising speed, in km/h. |
ARC | script.js | 1 | How tall the route's arc is: 0.4 almost flat, 1.6 very tall. |
SPEED | script.js | 1 | 2 = the loop twice as fast, 0.5 = half. |
SPRING | script.js | 1 | How springy the digits, the pill and the press are: 0.4 calm, 2 very bouncy. |
LOOP | script.js | true | Repeats the flight. |
For a travel or airline app, a booking page, the flight widget in a travel dashboard, the screen of someone waiting for a person at arrivals, a flight tracking app: it shows where the plane is, how long is left and what to do on arrival, at a glance.
The same animation with adapted sizes: the card takes almost the whole width, the city codes, the arc and the margins shrink with the screen's height, and even open with the details it fits in the box. A finger tap opens and closes it, with the same spring press.
The plane does not glide: it fades out and back in at the point of the route for each status (cruising, descending, landed), the digits and the pill change with a fade, the dashes stay still and the details open without a spring.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 11 KB; the libraries: GSAP 28 KB.
Tested on 7 November 2026
Use it in your own projects and in your clients’ projects. Do not resell it or redistribute it as is. GSAP stays under its own Standard license. Full license.
Support Animorio
Animorio stays free thanks to the people who support it. If you like, buy us a coffee: it helps us make the next animations.
You asked for
We made it for you: it’s in the library, with the preview, the Playground and the code to copy.
An animation you can’t find, or a site to take apart in the journal: tell us which. We pick the next ones from here.
With your account’s email and password.
or with your email
You’re signed in as .
With your account, you can download the zip of every animation and every pack, for free.