Skip to content
animorio
IT
Back to the library

Maintenance request

SVG, HoverGSAP, CSS onlyMediumCompressed weight: Demo 7.1 KBGSAP 28 KBFreeDownload the zip

A flat’s maintenance request, in a card on black: the leaking tap and its route in four stops, Reported, Scheduled, On the way and Fixed. At every step the marker travels along the line on a spring, the stop left behind gets its drawn tick, the status at the top rolls and the box below tells the stop with an icon that draws itself. Pointing at a stop shows what happens there.

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>
<!--
  "Maintenance request" 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>Maintenance request</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 maintenance request moving along its route: Reported, Scheduled, On the way, Fixed. The marker
         travels on the line, the stops behind it get their tick, and pointing at a stop shows what happens there -->
    <section class="mr" data-mr aria-label="Maintenance request">
      <header class="mr__head">
        <div class="mr__title"><span>Flat 4B, kitchen</span><strong>Leaking tap</strong></div>
        <span class="mr__pill" data-pill><span class="mr__clip"><span data-outstate>Reported</span></span></span>
      </header>
      <div class="mr__track" data-track>
        <svg viewBox="0 0 300 30" aria-hidden="true">
          <line class="mr__rail" x1="37.500" y1="15" x2="262.500" y2="15"></line>
          <line class="mr__done" data-done x1="37.500" y1="15" x2="37.500" y2="15"></line>
          <circle class="mr__peek" data-peek cx="37.500" cy="15" r="10"></circle>
          <circle class="mr__ring" data-ring cx="37.500" cy="15" r="10"></circle>
          <g data-stop><circle class="mr__dot" cx="37.5" cy="15" r="5"></circle><path class="mr__check" pathLength="1" d="M33.8 15.300l2.600 2.600 4.800-5.400"></path></g><g data-stop><circle class="mr__dot" cx="112.5" cy="15" r="5"></circle><path class="mr__check" pathLength="1" d="M108.8 15.300l2.600 2.600 4.800-5.400"></path></g><g data-stop><circle class="mr__dot" cx="187.5" cy="15" r="5"></circle><path class="mr__check" pathLength="1" d="M183.8 15.300l2.600 2.600 4.800-5.400"></path></g><g data-stop><circle class="mr__dot" cx="262.5" cy="15" r="5"></circle><path class="mr__check" pathLength="1" d="M258.8 15.300l2.600 2.600 4.800-5.400"></path></g>
        </svg>
        <div class="mr__stops"><button type="button" class="mr__stop" data-go="0"><span>Reported</span></button><button type="button" class="mr__stop" data-go="1"><span>Scheduled</span></button><button type="button" class="mr__stop" data-go="2"><span>On the way</span></button><button type="button" class="mr__stop" data-go="3"><span>Fixed</span></button></div>
      </div>
      <div class="mr__detail">
        <span class="mr__icon"><svg viewBox="0 0 24 24" aria-hidden="true"><g data-icon><path pathLength="1" d="M12 3.500c3.300 4 5.500 6.900 5.500 9.800a5.500 5.500 0 0 1-11 0c0-2.900 2.200-5.800 5.500-9.800Z"></path><path pathLength="1" d="M9.300 13.800a2.800 2.800 0 0 0 2.300 2.500"></path></g><g data-icon><path pathLength="1" d="M6.500 5.500h11a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-11a2 2 0 0 1-2-2v-10a2 2 0 0 1 2-2Z"></path><path pathLength="1" d="M4.500 10h15M8.500 3.500v4M15.500 3.500v4"></path><path pathLength="1" d="M9.300 14.600l1.900 1.900 3.500-3.800"></path></g><g data-icon><path pathLength="1" d="M3.500 7h10v9h-10Z"></path><path pathLength="1" d="M13.500 10h3.700l3.300 3.200V16h-7"></path><path pathLength="1" d="M9.200 17.500a1.700 1.700 0 1 1-3.400 0 1.700 1.700 0 0 1 3.400 0ZM18.200 17.500a1.700 1.700 0 1 1-3.400 0 1.700 1.700 0 0 1 3.400 0Z"></path></g><g data-icon><path pathLength="1" d="M14.800 4.300a4.300 4.300 0 0 0-4.900 5.900l-5.600 5.600a1.900 1.900 0 0 0 2.700 2.700l5.600-5.600a4.300 4.300 0 0 0 5.900-4.900l-2.700 2.700-2.400-.700-.700-2.400Z"></path></g></svg></span>
        <p class="mr__text" data-text><b data-outwhat>Reported by Dana, 2 photos</b><i data-outwhen>Mon 9:12</i></p>
      </div>
      <button type="button" class="mr__btn" data-next><span class="mr__clip"><span data-outnext>Schedule visit</span></span><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.500 8h9M8.700 4.200 12.500 8l-3.800 3.800"></path></svg></button>
    </section>
    <span class="live" aria-live="polite" data-live></span>

    <svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.200 19.200 11l-6.300 1.600-3.300 5.900Z"></path></svg>
  </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.

20 values to change

Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI

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 “Maintenance request” 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 black, a dark rounded card: “Flat 4B, kitchen” and below “Leaking tap”; on the right the mint green status pill, “Reported”. Below, a line with four stops: the first is filled with a ring around it, the others are off; under each its name, “Reported”, “Scheduled”, “On the way”, “Fixed”. Then a box with a line icon (a drop) and two lines: “Reported by Dana, 2 photos” and “Mon 9:12”. At the bottom the light button “Schedule visit”. Tapping it, the ring sets off, tightens as it travels and lands on the second stop opening again with a bounce; the green line follows it, the stop left behind gets a tick that draws itself, the new one swells for a moment; the status rolls into “Scheduled”, the icon becomes a calendar drawn stroke by stroke and the lines change, as does the button’s label (“Send plumber”, then “Mark as fixed”). At “Fixed” every stop has its tick, the ring goes and the pill fills with green. Pointing at a stop brings a dashed ring and the box tells that one: what happened if it is done, what is expected if it is not yet.

How it works

One number

The position on the route is a number from zero to three: the ring and the green line are read from it at every frame.

The trip

On changing stop the number goes to its new value with an ease that slightly overshoots; meanwhile the ring’s radius tightens and opens again on a spring.

The ticks

Every stop already left draws its tick by animating the dash; at Fixed the last one gets it too.

Looking ahead

Pointing at a stop does not change the status: it shows that stop’s text, the done one or the waiting one, and a dashed ring.

Values to change

NameFileDefaultWhat it changes
ACCENTscript.js#6fe3b0The colour of the route covered.
STARTscript.js0The stop the request starts from: 0 is Reported, 3 is Fixed.
TRAVELscript.js0.9How many seconds the marker takes from one stop to the next.
SPRINGscript.js1How much the marker bounces on arriving.
LOOPscript.jstrueLeft alone, the demo’s pointer points at the stops and moves the request on to Fixed.

Try them in the Playground

When to use it

In a tenant portal or a property manager’s app, to follow a fault from the report to the repair; in a hotel or holiday home app for guests’ requests. The same route carries a return, a claim, a support ticket or an order’s delivery.

On phones

The card is at most 348 pixels wide and about 290 tall: the route drawing narrows with it and the stop names stay on one line. Every stop is a button 54 pixels tall; with a finger a tap shows its text, a tap elsewhere goes back to the status.

With reduced motion

No trip and no springs: at every step ring, line, ticks, icon and texts are in place at once. The demo’s pointer does not start.

Pitfalls

  • The status is not only in the colour: every finished stop has a tick, the current one the ring, and the status name is written at the top.
  • The stops are real buttons with a label saying whether they are done, current or to come; with keyboard focus they show their text as with the pointer.
  • The circles’ radius is animated on the attribute, not with a scale: on an SVG element the scale origin is its bounding box and the ring would shift.
  • Lines that draw themselves need GSAP’s automatic rounding off, otherwise they pop in at once.
  • Names, times and the company are invented.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

Tested on 1 December 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 animations