
The send button
Buttons, Transitions, SVG
The live notification of a taxi app in the dynamic island of a titanium phone, like a Dribbble shot. The black pill widens on a spring from the small Driver 3 min to the large view: the minutes on a drum, the number plate and the model, and below a thin line where a car seen from above drives with its headlights on towards the pickup point, while the stretch already driven turns yellow and the minutes roll down. When it arrives, the island narrows to Your driver is here and pulses once.
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>
<!--
"Taxi island notification" 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 taxi notification in the dynamic island</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">
<!-- a warm light behind the phone, a cold one low on the left, and a very fine grain -->
<div class="aura" aria-hidden="true"><span class="aura__a"></span><span class="aura__b"></span></div>
<div class="grain" aria-hidden="true"></div>
<!-- only the top of a titanium phone: the frame, the lock screen and the dynamic island of a taxi app -->
<div class="phone" data-phone>
<span class="phone__key phone__key--action" aria-hidden="true"></span>
<span class="phone__key phone__key--up" aria-hidden="true"></span>
<span class="phone__key phone__key--side" aria-hidden="true"></span>
<div class="phone__frame">
<div class="screen">
<canvas class="screen__photo" data-photo aria-hidden="true"></canvas>
<span class="screen__glare" aria-hidden="true"></span>
<div class="bar" data-bar aria-hidden="true">
<span class="bar__time">9:41</span>
<span class="bar__icons">
<svg viewBox="0 0 18 12"><rect x="0" y="8" width="3" height="4" rx="1"/><rect x="5" y="5.5" width="3" height="6.5" rx="1"/><rect x="10" y="3" width="3" height="9" rx="1"/><rect x="15" y="0" width="3" height="12" rx="1"/></svg>
<svg viewBox="0 0 16 12"><path d="M8 2.2c2.4 0 4.6.9 6.2 2.5l1.3-1.3A10.6 10.6 0 0 0 8 .4C5.1.4 2.4 1.5.5 3.4l1.3 1.3A8.7 8.7 0 0 1 8 2.2zm0 3.6c1.4 0 2.7.5 3.7 1.5L13 6a7 7 0 0 0-10 0l1.3 1.3c1-1 2.3-1.5 3.7-1.5zm0 3.6c.5 0 1 .2 1.3.5L8 11.6 6.7 9.9c.3-.3.8-.5 1.3-.5z"/></svg>
<svg viewBox="0 0 27 12"><rect x=".6" y=".6" width="22.8" height="10.8" rx="3.4" fill="none" stroke="currentColor" stroke-opacity=".4" stroke-width="1.1"/><rect x="2.2" y="2.2" width="17" height="7.6" rx="2"/><path d="M25 4v4c.8-.3 1.4-1.1 1.4-2S25.8 4.3 25 4z" fill-opacity=".45"/></svg>
</span>
</div>
<!-- the island: the button is moved by GSAP only in scale (press and the single pulse), the shape inside only
in width, height and radius; the three faces are children of the shape -->
<div class="slot">
<span class="ring" data-ring aria-hidden="true"></span>
<button class="press" type="button" data-press aria-expanded="false" aria-label="Kito ride: driver 3 minutes away" data-autoclic>
<span class="island" data-island>
<span class="island__sheen" aria-hidden="true"></span>
<span class="face face--compact" data-compact>
<span class="lead">
<svg class="glyph" viewBox="0 0 24 24" aria-hidden="true"><use href="#car-top"/></svg>
<span class="lead__word">Driver</span>
</span>
<span class="trail"><span class="drum" data-drum="s"></span><span class="trail__unit">min</span></span>
</span>
<span class="face face--big" data-big>
<span class="big__top">
<span class="brand" aria-hidden="true">
<svg viewBox="0 0 24 24"><path d="M7 5v14M7 12.4 15.6 5M10.6 9.4 16.8 19"/></svg>
</span>
<span class="eta">
<span class="eta__label" data-part>Kito · Pickup in</span>
<span class="eta__num" data-part><span class="drum drum--big" data-drum="b"></span><span class="eta__unit">min</span></span>
</span>
<span class="car-id" data-part>
<span class="plate"><span class="plate__band" aria-hidden="true"></span><span data-plate>LK72 RVX</span></span>
<span class="car-id__model" data-model>Silver Toyota Prius</span>
</span>
</span>
<span class="track" data-track data-part>
<span class="track__line" aria-hidden="true"></span>
<span class="track__fill" data-fill aria-hidden="true"></span>
<span class="track__ticks" data-ticks aria-hidden="true"></span>
<span class="pin" data-pin aria-hidden="true">
<svg viewBox="0 0 24 24"><path d="M12 21.4s6.6-6 6.6-11.3a6.6 6.6 0 0 0-13.2 0c0 5.3 6.6 11.3 6.6 11.3z"/><path class="pin__core" d="M12 7.6a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5z"/></svg>
</span>
<span class="car" data-car aria-hidden="true">
<span class="car__beam" data-beam></span>
<span class="car__shadow"></span>
<svg class="car__body" data-carbody viewBox="0 0 48 24">
<defs>
<linearGradient id="paint" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#f2f3f5"/>
<stop offset=".45" stop-color="#c9ccd2"/>
<stop offset="1" stop-color="#8d939c"/>
</linearGradient>
<linearGradient id="glass" x1="0" y1="0" x2="1" y2="1">
<stop offset="0" stop-color="#3a4250"/>
<stop offset="1" stop-color="#0d1016"/>
</linearGradient>
</defs>
<rect x="12" y="1.2" width="3" height="1.6" rx=".8" fill="#6f747c"/>
<rect x="12" y="21.2" width="3" height="1.6" rx=".8" fill="#6f747c"/>
<rect x="31" y="0.4" width="3.4" height="2.2" rx="1" fill="#b9bdc4"/>
<rect x="31" y="21.4" width="3.4" height="2.2" rx="1" fill="#b9bdc4"/>
<rect x="1.5" y="2.4" width="45" height="19.2" rx="7" fill="url(#paint)"/>
<path d="M28.6 4.4c3.4.3 5.6 1 7 2.2.6 1.6.9 3.4.9 5.4s-.3 3.8-.9 5.4c-1.4 1.2-3.6 1.9-7 2.2.4-2.4.6-5 .6-7.6s-.2-5.2-.6-7.6z" fill="url(#glass)"/>
<path d="M10.6 5.2c-1.8.2-3 .6-3.9 1.2-.4 1.8-.6 3.7-.6 5.6s.2 3.8.6 5.6c.9.6 2.1 1 3.9 1.2-.3-2.2-.5-4.4-.5-6.8s.2-4.6.5-6.8z" fill="url(#glass)"/>
<rect x="11.6" y="5.2" width="16.2" height="13.6" rx="3.4" fill="#e3e5e9"/>
<path d="M13 6.4h13.6" stroke="#fff" stroke-opacity=".9" stroke-width=".7" stroke-linecap="round"/>
<path class="car__shine" d="M30.4 6.2 33 9.6" stroke="#fff" stroke-opacity=".5" stroke-width=".8" stroke-linecap="round"/>
<rect x="44.6" y="4.4" width="1.6" height="3.8" rx=".8" fill="#fff6d8"/>
<rect x="44.6" y="15.8" width="1.6" height="3.8" rx=".8" fill="#fff6d8"/>
<rect x="1.8" y="4.6" width="1.3" height="3.6" rx=".6" fill="#ff4d4d"/>
<rect x="1.8" y="15.8" width="1.3" height="3.6" rx=".6" fill="#ff4d4d"/>
</svg>
</span>
</span>
<span class="big__foot" data-part>
<span class="foot__away"><span data-away>0.6</span> mi away</span>
<span class="foot__where">Pickup · <span data-where>24 Rye Lane</span></span>
</span>
</span>
<span class="face face--here" data-here>
<span class="lead">
<svg class="glyph" viewBox="0 0 24 24" aria-hidden="true"><use href="#car-top"/></svg>
<span class="lead__word">Your driver is here</span>
</span>
<span class="here__plate" data-hplate>LK72 RVX</span>
</span>
</span>
</button>
</div>
</div>
</div>
</div>
<p class="sr" aria-live="polite" data-say></p>
</main>
<svg width="0" height="0" style="position:absolute" aria-hidden="true">
<symbol id="car-top" viewBox="0 0 24 24">
<rect x="1.4" y="6" width="21.2" height="12" rx="4.4" fill="currentColor"/>
<path d="M14.6 7.4c1.7.1 2.9.5 3.6 1.1.3 1 .4 2.2.4 3.5s-.1 2.5-.4 3.5c-.7.6-1.9 1-3.6 1.1.3-1.4.4-3 .4-4.6s-.1-3.2-.4-4.6z" fill="#000" fill-opacity=".78"/>
<path d="M6.6 8c-1 .1-1.7.4-2.2.8-.2.9-.3 2-.3 3.2s.1 2.3.3 3.2c.5.4 1.2.7 2.2.8-.2-1.3-.3-2.6-.3-4s.1-2.7.3-4z" fill="#000" fill-opacity=".78"/>
<rect x="21.4" y="7.4" width="1" height="2.2" rx=".5" fill="#fff" fill-opacity=".9"/>
<rect x="21.4" y="14.4" width="1" height="2.2" rx=".5" fill="#fff" fill-opacity=".9"/>
</symbol>
</svg>
<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.
31 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 “Taxi island notification” from Animorio and fit it into my siteThe phone is min(680px, 92vw, 130vh) wide and every size is a share of that width (--u, one three hundred and seventieth): frame, screen, island and words stay in proportion from the phone box to a big screen. The island’s sizes sit in a table of four states (empty, small, large, arrived) and the script turns them into pixels on every resize.
The shape ([data-island]) changes only width, height and radius with GSAP; the ease is a true spring written as a function: a damped oscillator that settles exactly at the end of the tween, with its damping taken from SPRING. Each face has the width of its state and is centred, so while the pill grows the content is not squeezed but uncovered, and it arrives blurred and a little smaller.
Each drum is a window one line tall, with a soft mask above and below, over a column 3, 2, 1: to change minute the column slides by yPercent on the same spring. The small drum and the big one move together, so closing the island halfway through the ride the minute is already right.
The ride is an object p from 0 to 1 moved by three tweens (sets off, slows as if at traffic lights, arrives). At each step the car is placed at p times the measured length of the line, the yellow stretch grows with scaleX, the marks passed light up, the yellow glow inside the island moves with a CSS variable and distance and minutes update. A gsap.ticker gives the car a one degree sway and makes the headlight beam flicker.
On arrival the car brakes squashing by 3% towards its nose, the pin hops, the island narrows to Your driver is here and the button swells by 5.5% and springs back, once; a yellow outline as large as the island widens by a few pixels and fades. The photo of the city is a canvas: round lights with a brighter rim like real bokeh, in lighter mode, and a grain.
| Name | File | Default | What it changes |
|---|---|---|---|
MINUTES | script.js | 3 | The minutes on the first notification; the drum counts down to 1. |
PLATE | script.js | LK72 RVX | The car’s number plate. |
MODEL | script.js | Silver Toyota Prius | The colour and model of the car. |
PICKUP | script.js | 24 Rye Lane | Where the driver picks you up. |
DISTANCE | script.js | 0.6 | How many miles away the driver starts. |
DRIVE | script.js | 7 | How many seconds the car takes to reach the pin. |
SPRING | script.js | 1 | How springy the island is: 0.4 calm, 2 very bouncy. |
HOLD | script.js | 2.6 | How many seconds it stays on Your driver is here. |
AUTO | script.js | true | The island opens and closes by itself until someone taps it. |
For a taxi or ride hailing app, a shuttle or hotel transfer service, a delivery or car sharing app: it says at a glance in how many minutes the driver arrives, which car to look for and when it is there, without opening the app. It works as an app showcase on a landing page or as part of a live notification system.
On the phone the drawn phone is 92% of the screen wide and everything shrinks in proportion, island and words included; it opens and closes with a tap, and pressing it squashes it by a hair. The rest is the same.
Nothing moves: the island changes shape at once and its faces swap with a fade, the minutes change in place, the car appears at each minute at its point on the line without sliding, and on arrival the yellow outline lights up and fades without widening.
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 4 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.