Skip to content
animorio
IT
All components

Taxi island notification

Notifications, Transitions, SVGGSAP, CSS only, CanvasMediumCompressed weight: Demo 11 KBGSAP 28 KBFreeDownload the zip

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.

The code

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>

Playground

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

Or ask your AI assistant for it

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 site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

On a near black page, with a warm light behind, a cold one low down and a very fine grain, there is the top of a brushed titanium phone, with the keys on its side and the edge catching the light; the lock screen shows a city at night out of focus, round yellow, red and blue lights, and the status bar with the time. At the top, the dynamic island: the black pill widens on a spring and becomes the small notification of the taxi app Kito, the yellow car seen from above with Driver on the left and 3 min on the right. Then it opens wide, with a barely hinted bounce: the yellow app tile, Pickup in and the big minutes on a drum, on the right the number plate with its blue band and under it Silver Toyota Prius. Below runs a thin line with nine small marks and at the end the yellow pickup pin. A silver car seen from above, with windscreen, rear window, mirrors, headlights lighting the road ahead and a soft shadow, sets off and drives: it slows halfway as if at traffic lights and goes again; the stretch already driven turns yellow, the marks it passes light up and grow, underneath the distance goes down from 0.6 mi and the minutes roll down, 3, 2, 1, while a yellow glow follows the car inside the black. On arrival the car brakes with a small jolt and the pin hops; the island narrows to Your driver is here with the plate, swells once and a yellow outline widens and fades. Then it goes small again and starts over. Tapped, the island opens and closes.

How it works

Everything in phone units

The 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 island’s spring

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.

Minutes on a drum

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 car on the line

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.

Arrived, one pulse

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.

Values to change

NameFileDefaultWhat it changes
MINUTESscript.js3The minutes on the first notification; the drum counts down to 1.
PLATEscript.jsLK72 RVXThe car’s number plate.
MODELscript.jsSilver Toyota PriusThe colour and model of the car.
PICKUPscript.js24 Rye LaneWhere the driver picks you up.
DISTANCEscript.js0.6How many miles away the driver starts.
DRIVEscript.js7How many seconds the car takes to reach the pin.
SPRINGscript.js1How springy the island is: 0.4 calm, 2 very bouncy.
HOLDscript.js2.6How many seconds it stays on Your driver is here.
AUTOscript.jstrueThe island opens and closes by itself until someone taps it.

Try them in the Playground

When to use 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 phones

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.

With reduced motion

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.

Pitfalls

  • With the faces as wide as the island, the road line was measured as wide as the small pill and the car stopped halfway: each face has the fixed width of its state and is centred, and the line is always measured right.
  • A GSAP spring like elastic never settles to zero inside the tween and the island ended with a jump: the spring is a damped oscillator with its frequency chosen so that at the end of the tween the oscillation is under half a pixel.
  • The finger press and the arrival pulse used the same scale as the widening shape and cancelled each other: the scale sits on the button, width and height on the shape inside.
  • The round started when the script was read and the poster landed on different moments: it starts from the load event.

Libraries

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.

Testing

Tested on 4 November 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

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.

All components