Skip to content
animorio
IT
All components

Scooter delivery notification

Notifications, HoverGSAP, CSS onlyMediumCompressed weight: Demo 9.4 KBGSAP 28 KBFreeDownload the zip

The live notification of a food delivery app, like a phone Live Activity: a black pill opening from the top with the road from the restaurant to home inside, working as a progress bar. A carefully drawn scooter, with its helmeted rider and the delivery box, leaves with a puff, runs along the road with its wheels really turning and brakes at the door with its nose dipping on the suspension; meanwhile the minutes roll down, the stages light up and at the end the pill gives a small jump and says Your order is here.

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>
<!--
  "Scooter delivery 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 live delivery notification with the scooter arriving</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>
    <!-- a food delivery app's live activity: a black pill that opens from the top, with the route
         from the restaurant to home and a scooter riding along it until it brakes at the door -->
    <div class="frame" data-frame aria-hidden="true"></div>
    <section class="island" data-island aria-live="polite" aria-label="Order 4821, live delivery">
      <div class="compact" data-compact aria-hidden="true">
        <svg class="mini" viewBox="0 0 24 24" data-mini-ride><path d="M5 16.5a2.5 2.5 0 1 0 0 .01M19 16.5a2.5 2.5 0 1 0 0 .01M7.5 16.5h7l3-6M14.5 16.5l-2-6H9M4 9h5v4H4z"/></svg>
        <svg class="mini mini--done" viewBox="0 0 24 24" data-mini-done><path d="M6 12.5 10 16.3 18 8.2"/></svg>
        <span class="compact__txt"><span class="roll"><span class="roll__line" data-c1></span><span class="roll__line" data-c2></span></span></span>
      </div>

      <div class="full" data-full>
        <div class="row row--top" data-bit>
          <span class="app" aria-hidden="true">
            <svg viewBox="0 0 24 24"><path d="M5.5 11.5h13a6.5 6.5 0 0 1-13 0Z"/><path class="app__steam" d="M9.5 8.5c-.8-1 .8-1.6 0-2.8M12.5 8.5c-.8-1 .8-1.6 0-2.8M15.5 8.5c-.8-1 .8-1.6 0-2.8"/></svg>
          </span>
          <span class="brand">Forkway</span>
          <span class="eta" data-eta>Arriving 20:41</span>
        </div>

        <div class="row row--main" data-bit>
          <p class="title"><span class="roll"><span class="roll__line" data-t1></span><span class="roll__line" data-t2></span></span></p>
          <div class="mins" data-mins>
            <span class="mins__num"><span class="roll roll--num"><span class="roll__line" data-m1></span><span class="roll__line" data-m2></span></span></span>
            <span class="mins__unit" data-unit>min</span>
            <svg class="mins__done" viewBox="0 0 32 32" data-done aria-hidden="true">
              <circle cx="16" cy="16" r="14.5" data-done-ring/>
              <path d="M9.6 16.6 14 20.8 22.6 11.8" data-done-tick/>
            </svg>
          </div>
        </div>

        <p class="sub" data-bit><span class="roll"><span class="roll__line" data-s1></span><span class="roll__line" data-s2></span></span></p>

        <div class="route" data-route data-bit aria-hidden="true">
          <span class="stop stop--from" data-from>
            <svg viewBox="0 0 24 24"><path d="M4.5 10.5 6 5.5h12l1.5 5"/><path d="M4.5 10.5c0 1.3 1.1 2.2 2.5 2.2s2.5-.9 2.5-2.2c0 1.3 1.1 2.2 2.5 2.2s2.5-.9 2.5-2.2c0 1.3 1.1 2.2 2.5 2.2s2.5-.9 2.5-2.2"/><path d="M6 12.6v6.4h12v-6.4M10.3 19v-3.6h3.4V19"/></svg>
            <span class="steam" data-steam><i></i><i></i><i></i></span>
          </span>
          <span class="road" data-road>
            <span class="road__dash"></span>
            <span class="road__fill" data-fill></span>
            <span class="ride" data-ride>
              <span class="ride__beam" data-beam></span>
              <span class="puffs" data-puffs></span>
              <svg class="scooter" data-scooter viewBox="0 -9 72 54">
                <defs>
                  <linearGradient id="carro" x1="0" y1="0" x2="0" y2="1">
                    <stop offset="0" stop-color="#ffffff"/>
                    <stop offset="0.55" stop-color="#e7e8ec"/>
                    <stop offset="1" stop-color="#b9bbc3"/>
                  </linearGradient>
                  <linearGradient id="cassa" x1="0" y1="0" x2="0" y2="1">
                    <stop class="box-hi" offset="0"/>
                    <stop class="box-lo" offset="1"/>
                  </linearGradient>
                </defs>
                <g data-pitch>
                  <!-- delivery box on the rack -->
                  <path class="s-rack" d="M7.5 20.6h14.6M20.8 20.6l3.2 1.6"/>
                  <rect class="s-box" x="5.6" y="4.8" width="16" height="15.2" rx="2.2" fill="url(#cassa)"/>
                  <path class="s-box-lid" d="M5.6 8.6h16"/>
                  <path class="s-box-mark" d="M10.4 13.6h6.6a3.3 2.9 0 0 1-6.6 0Z"/>
                  <path class="s-box-steam" d="M12 11.4c-.6-.7.6-1.1 0-1.9M13.7 11.4c-.6-.7.6-1.1 0-1.9M15.4 11.4c-.6-.7.6-1.1 0-1.9"/>
                  <!-- rear wheel -->
                  <g transform="translate(16 37.6)">
                    <circle class="s-tyre" r="6.6"/>
                    <circle class="s-tyre-hi" r="5.9"/>
                    <circle class="s-rim" r="3.9"/>
                    <g data-spin><path class="s-spoke" d="M0-3.9V-1.2M3.7-1.2 1.1-.4M2.3 3.2.7 1M-2.3 3.2-.7 1M-3.7-1.2-1.1-.4"/></g>
                    <circle class="s-hub" r="1.2"/>
                  </g>
                  <!-- front wheel -->
                  <g transform="translate(56 37.6)">
                    <circle class="s-tyre" r="6.6"/>
                    <circle class="s-tyre-hi" r="5.9"/>
                    <circle class="s-rim" r="3.9"/>
                    <g data-spin><path class="s-spoke" d="M0-3.9V-1.2M3.7-1.2 1.1-.4M2.3 3.2.7 1M-2.3 3.2-.7 1M-3.7-1.2-1.1-.4"/></g>
                    <circle class="s-hub" r="1.2"/>
                  </g>
                  <!-- exhaust -->
                  <path class="s-pipe" d="M6.5 35.4h7.2"/>
                  <!-- body: rear cowl, floorboard, leg shield, fender, headset -->
                  <path class="s-body" d="M8.2 33.6C8 26.4 13.6 21.6 22.4 21.4h11.2c2 0 3.1 1.6 2.4 3.4l-2.2 6.4c-.7 1.6-2.1 2.6-3.9 2.6h-6.2c-.7-3.6-3.6-5.9-7.6-5.9-3.9 0-6.9 2.4-7.9 5.7Z" fill="url(#carro)"/>
                  <path class="s-trim" d="M12.4 25.6c2.6-2 6.2-3 10.4-3h9.8"/>
                  <path class="s-floor" d="M27.6 32.2h17.6l1.4 2.6H26.4Z"/>
                  <path class="s-body" d="M44.6 34.6 47.6 18.4c.5-2 2-2.9 3.6-2.5l.8.3-2.6 18.4Z" fill="url(#carro)"/>
                  <path class="s-fork" d="M50.6 16.6 55.6 32"/>
                  <path class="s-body" d="M50.4 33.4c.9-3.4 3.6-4.9 6.5-4.6 3 .3 5.3 2.2 5.8 5.1h-2.1c-.5-1.8-2-3-3.9-3-1.8 0-3.2 1-3.8 2.5Z" fill="url(#carro)"/>
                  <path class="s-seat" d="M20.6 21.4c-.2-2 1.6-3.4 3.8-3.4h9.2c2 0 3.1 1.5 2.5 3.4Z"/>
                  <path class="s-body" d="M48.6 11.8 55.2 12.4c1.6.2 2.2 1.6 1.6 3.1l-1 2.2-5.8-.5Z" fill="url(#carro)"/>
                  <circle class="s-lamp" cx="55.4" cy="14.6" r="1.9"/>
                  <path class="s-bar" d="M46.4 12.2 52.6 12.8"/>
                  <!-- rider -->
                  <path class="s-leg" d="M27.6 17.2 37 19.4 41 31.8"/>
                  <path class="s-boot" d="M39.4 31.8h4.4"/>
                  <path class="s-jacket" d="M24.8 18.4c-1-5 .9-9.8 5.8-12.6l4.2-.6c2 .9 2.6 2.9 1.6 4.9l-3.5 8.3Z"/>
                  <path class="s-arm" d="M34.2 7.4 41 10.6 47 12.6"/>
                  <circle class="s-glove" cx="47.4" cy="12.7" r="1.4"/>
                  <circle class="s-helmet" cx="33.6" cy="-1.8" r="4.8"/>
                  <path class="s-visor" d="M34.4-3.9c2.4-.1 4.2 1.1 4.3 3 0 1.2-1.4 1.6-3 1.4l-1.3-.4Z"/>
                  <path class="s-stripe" d="M29.4-3.6c1.4-2.2 3.7-3.4 6.2-3"/>
                </g>
              </svg>
            </span>
          </span>
          <span class="stop stop--to" data-to>
            <svg viewBox="0 0 24 24"><path d="M4.5 11 12 5l7.5 6"/><path d="M6.5 9.6V19h11V9.6M10.4 19v-4.6h3.2V19"/></svg>
          </span>
        </div>

        <div class="steps" data-bit>
          <span class="step" data-step>Preparing</span>
          <span class="step" data-step>On the way</span>
          <span class="step" data-step>Arriving</span>
        </div>
      </div>
    </section>
  </main>

  <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.

17 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 “Scooter delivery 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 white background, at the top, a small black island appears with a green scooter and 14 min. Soon it opens downwards on a spring and becomes the notification of Forkway, a made-up delivery app: at the top the bowl icon, the app’s name and Arriving 20:41; below the title Preparing your order, the restaurant Ruth’s Kitchen with two dishes and, on the right, the big minutes in green. Lower down the road: on the left the restaurant, with three wisps of steam rising while the order is prepared, on the right the house, and in between a dashed line where the scooter waits. The scooter is carefully drawn: light bodywork lit from above with a highlight line, footboard, leg shield, mudguard, headlight on, wheels with five-spoke rims, and on it the rider with a white helmet, a dark visor, a green jacket and the green delivery box on the rack. When it leaves, On the way, the suspension lifts a few degrees, puffs come out of the exhaust and stay on the road, the headlight casts a cone of light and the scooter speeds up; the wheels turn exactly as far as it travels, the bodywork shakes slightly over the bumps and the road turns green behind it, while the minutes roll down towards one. At Almost there it brakes: the nose dips, it slows down and at the door the suspension bounces and settles. The pill gives a small jump, the house lights up green, the minutes give way to a checkmark drawing itself in its circle and the title rolls to Your order is here. Soon after the notification closes back into the island, which says Delivered, and leaves. A click on the pill runs the delivery again from the start.

How it works

An island that opens

The pill is a single element: GSAP changes its width, height, margin and radius between the small size and the open one, with elastic.out, while the small content disappears and the big one comes in row by row. The open size is taken from the content, so on a phone it narrows by itself.

The road is the bar

A single number, p, goes from 0 to 1 in three tweens: the start with power2.in, the steady ride and the braking with power3.out. On every frame the ticker turns it into the scooter’s position, the length of the green stretch and the rotation of the wheels.

Wheels that really turn

The wheels’ rotation is the distance travelled divided by the radius: pixels become SVG drawing units, are divided by 6.6 and turned into degrees. So the wheels never slide, neither when leaving nor when braking.

The suspension

The whole scooter sits in a group that rotates around a point between the wheels, with svgOrigin: when leaving it lifts by three degrees, when braking it dips by four and at the stop it returns to zero with elastic.out, which gives the bounce of the springs.

Values to change

NameFileDefaultWhat it changes
TRIP_TIMEscript.js4.6How many seconds the scooter’s trip from the restaurant to home lasts.
START_MINUTESscript.js14The minutes left while the restaurant prepares the order.
HOLDscript.js2.4How many seconds the notification stays open once delivered.
ACCENTscript.js#3ddc84The app’s colour: the road travelled, the jacket, the box.
RESTAURANTscript.jsRuth's KitchenThe restaurant’s name.

Try them in the Playground

When to use it

In food delivery apps, restaurants and shops with same-day delivery: the notification tells at a glance where the order is, how long is left and where the courier is, without opening the map.

On phones

The open pill is at most the window minus 32 pixels wide and the road shortens with it: the scooter keeps its size and travels less. A tap on the pill runs the delivery again.

With reduced motion

No movement: the notification appears already open with a fade, the scooter fades out and back in further along the road, the texts change with a fade and the checkmark appears already drawn.

Pitfalls

  • The wheels must turn by the distance travelled, not by time: turning at a fixed speed, they look like they skid when braking.
  • The minutes change often during the ride: the old text leaves before the new one comes in, otherwise for a moment two numbers can be read on top of each other.
  • The exhaust puffs live on the road and not inside the scooter, so they stay where they were born while it rides away.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 9.4 KB; the libraries: GSAP 28 KB.

Testing

Tested on 3 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