Skip to content
animorio
IT
Back to the library

Parking app landing

Scroll, SVGGSAP, CSS onlyMediumCompressed weight: Demo 11 KBGSAP + ScrollTrigger 45 KBLenis 5.3 KBFreeDownload the zip

Scroll inside the preview

The landing of a made-up city parking app, Bayline: as you scroll, the top-down plan of one level of a multi-storey car park, drawn in thin-line SVG, builds itself layer after layer (walls and pillars, dashed lanes, bay stripes, direction arrows, the cars already parked), the free bays light up one by one in mint, the barrier lifts and the route from the entrance to bay B-08 draws itself as a glowing line with the car seen from above following it, turning in, braking and settling. Beside it the three lines of the product come in one at a time with their number: 312 spots live, 2 min to park, 1.80 euros an hour.

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>
<!--
  "Parking app landing" 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>Bayline city parking</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>
  <!-- the landing of a made-up city parking app, Bayline. The stage sticks while you scroll and the scroll builds the
       plan of a multi-storey car park seen from above, layer after layer: the walls, the lanes, the bay stripes, the
       direction arrows. Then the free bays light up one by one, the route from the entrance to the chosen bay draws
       itself as a glowing line with the car following it, and the three lines of the product come in one at a time. -->
  <main>
    <section class="park" data-park>
      <div class="stage" data-stage>
        <div class="light light--a" data-light-a aria-hidden="true"></div>
        <div class="light light--b" data-light-b aria-hidden="true"></div>
        <div class="grain" aria-hidden="true"></div>

        <div class="frame" data-frame>
          <article class="panel" data-panel>
            <span class="panel__edge" aria-hidden="true"></span>
            <span class="panel__glow" aria-hidden="true"></span>

            <header class="head">
              <span class="mark" aria-hidden="true">
                <svg viewBox="0 0 16 16"><rect x="3.2" y="2.6" width="9.6" height="10.8" rx="2.6"/><path d="M6.4 11V5.4h2.2a1.8 1.8 0 0 1 0 3.6H6.4"/></svg>
              </span>
              <p class="brand">Bayline</p>
              <p class="where muted">Harbour St Garage <span class="where__sep" aria-hidden="true"></span> Level P2</p>
              <a class="cta" href="#" data-cta>
                <span class="cta__fill" aria-hidden="true"></span>
                <span class="cta__words">Get the app</span>
              </a>
            </header>

            <div class="body">
              <div class="copy">
                <h1 class="title">The bay is <em>waiting</em> before you arrive.</h1>
                <ul class="facts">
                  <li class="fact" data-fact>
                    <span class="fact__icon" aria-hidden="true"><svg viewBox="0 0 16 16"><rect x="2.5" y="3" width="11" height="10" rx="2.4"/><path d="M5.5 6.5h5M5.5 9.5h3"/></svg></span>
                    <span class="fact__data"><b class="fact__num" data-num="312" data-fmt="int">0</b> spots live</span>
                    <span class="fact__line muted">Every free bay in the city, live.</span>
                  </li>
                  <li class="fact" data-fact>
                    <span class="fact__icon" aria-hidden="true"><svg viewBox="0 0 16 16"><path d="M3 12.5V9.2c0-1.6 1.3-2.9 2.9-2.9h6.6"/><path d="M10 3.8l2.5 2.5L10 8.8"/></svg></span>
                    <span class="fact__data"><b class="fact__num" data-num="2" data-fmt="int">0</b> min to park</span>
                    <span class="fact__line muted">Turn by turn to the bay itself.</span>
                  </li>
                  <li class="fact" data-fact>
                    <span class="fact__icon" aria-hidden="true"><svg viewBox="0 0 16 16"><circle cx="8" cy="8" r="5.4"/><path d="M8 5v3.2l2 1.3"/></svg></span>
                    <span class="fact__data"><b class="fact__num" data-num="1.8" data-fmt="eur">0</b>/h</span>
                    <span class="fact__line muted">Pay by the minute, leave anytime.</span>
                  </li>
                </ul>
              </div>

              <div class="map" data-map>
                <svg class="plan" viewBox="0 0 420 284" role="img" aria-label="Plan of level P2 of Harbour St Garage, seen from above">
                  <defs>
                    <filter id="glow" x="-20%" y="-20%" width="140%" height="140%">
                      <feGaussianBlur stdDeviation="3.2"/>
                    </filter>
                    <linearGradient id="beam" x1="0" y1="1" x2="0" y2="0">
                      <stop offset="0" stop-color="#fff" stop-opacity="0.55"/>
                      <stop offset="1" stop-color="#fff" stop-opacity="0"/>
                    </linearGradient>
                    <linearGradient id="floor" x1="0" y1="0" x2="1" y2="1">
                      <stop offset="0" stop-color="#fff" stop-opacity="0.035"/>
                      <stop offset="0.6" stop-color="#fff" stop-opacity="0.012"/>
                      <stop offset="1" stop-color="#fff" stop-opacity="0.03"/>
                    </linearGradient>
                    <linearGradient id="sweep" x1="0" y1="0" x2="1" y2="0">
                      <stop offset="0" stop-color="#fff" stop-opacity="0"/>
                      <stop offset="0.5" stop-color="#fff" stop-opacity="0.09"/>
                      <stop offset="1" stop-color="#fff" stop-opacity="0"/>
                    </linearGradient>
                    <clipPath id="inside"><rect x="12" y="12" width="396" height="258" rx="12"/></clipPath>
                  </defs>

                  <!-- the floor slab and the light that sweeps it when a layer is done -->
                  <rect class="slab" data-slab x="12" y="12" width="396" height="258" rx="12" fill="url(#floor)"/>
                  <g clip-path="url(#inside)"><rect class="sweep" data-sweep x="-140" y="0" width="140" height="284" fill="url(#sweep)"/></g>

                  <!-- layer: the ramp hatching, the walls, the pillars -->
                  <g class="ramp" data-ramp></g>
                  <path class="wall" data-draw="walls" pathLength="1" d="M72 270H396A12 12 0 0 0 408 258V24A12 12 0 0 0 396 12H24A12 12 0 0 0 12 24V258A12 12 0 0 0 24 270"/>
                  <g class="gate" data-gate>
                    <path class="gate__post" d="M24 266V276M72 266V276"/>
                    <path class="gate__bar" data-gate-bar d="M26 271H66"/>
                  </g>
                  <g class="pillars" data-pillars></g>

                  <!-- layer: the lanes -->
                  <g class="lanes" data-lanes>
                    <path data-draw="lanes" d="M48 262V64"/>
                    <path data-draw="lanes" d="M64 78H398"/>
                    <path data-draw="lanes" d="M398 202H64"/>
                  </g>

                  <!-- layer: the bay stripes and the divider -->
                  <g class="stripes" data-stripes></g>

                  <!-- layer: the direction arrows -->
                  <g class="arrows" data-arrows></g>

                  <!-- the cars already parked, the free bays, the bay names -->
                  <g class="taken" data-taken></g>
                  <g class="free" data-free></g>

                  <!-- the route, its glow, the car -->
                  <path class="route route--glow" data-route-glow filter="url(#glow)"/>
                  <path class="route" data-route/>
                  <g class="tag" data-tag-at>
                    <g data-tag>
                      <rect class="tag__box" x="-23" y="-10" width="46" height="20" rx="10"/>
                      <text class="tag__text" x="0" y="3.6" text-anchor="middle">B-08</text>
                    </g>
                  </g>
                  <g class="car" data-car>
                    <g data-car-body>
                      <path class="car__beam" d="M-8.5 -14 L-15 -40 L-1 -40 L-3.5 -14Z M8.5 -14 L15 -40 L1 -40 L3.5 -14Z" fill="url(#beam)"/>
                      <rect class="car__shadow" x="-9.5" y="-13" width="19" height="31" rx="6"/>
                      <rect class="car__shell" x="-9" y="-15" width="18" height="30" rx="5.6"/>
                      <path class="car__glass" d="M-6.6 -7.4Q0 -10 6.6 -7.4L5.8 -3.2Q0 -4.6 -5.8 -3.2Z"/>
                      <path class="car__glass car__glass--rear" d="M-5.6 7.2Q0 8.4 5.6 7.2L6.2 10.6Q0 12.2 -6.2 10.6Z"/>
                      <path class="car__roof" d="M-5.4 -2.2H5.4V5.8H-5.4Z"/>
                      <path class="car__lamp" d="M-7 -14.4H-3.4M3.4 -14.4H7"/>
                      <path class="car__tail" data-tail d="M-7 14.6H-3.6M3.6 14.6H7"/>
                    </g>
                  </g>
                </svg>
              </div>
            </div>
          </article>
        </div>
        <p class="sr" aria-live="polite" data-live></p>
      </div>
    </section>
  </main>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/ScrollTrigger.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/lenis@1.3.26/dist/lenis.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.

34 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 “Parking app landing” 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 an almost black background with two soft lights, mint at the top and blue at the bottom, sits the glass panel of Bayline, a made-up parking app: the brand with its P mark, ‘Harbour St Garage’, ‘Level P2’ and the ‘Get the app’ pill; on the left the heading ‘The bay is waiting before you arrive.’, on the right the top-down plan of the level. As you scroll the stage stays put and the plan builds itself: first the walls draw all the way round leaving the entrance open between two posts, the pillars pop up on a spring, the ramp to the level above is hatched in; then the lanes come in dash after dash, the bay stripes are pulled row after row from the lane to the back, the direction arrows draw themselves, the cars already parked settle a little crooked like real ones and a light passes over the finished floor. Then the free bays light up one by one in mint, from the nearest to the entrance to the furthest, passing their size by a breath; the first line comes in, ‘312 spots live’, with its number counting up. The barrier lifts, the chosen bay swells and the other free ones dim by half, and the route draws itself from the entrance as a glowing line: up the left lane, right along the top lane and down into the bay, with the car seen from above following it and turning with the road, its headlights lighting the way; ‘2 min to park’ comes in. At the end the car brakes (the tail lights come on), rolls a pixel on and back, the headlights go off, the B-08 tag pops up over the bay, ‘€1.80/h’ comes in and the ‘Get the app’ pill lights up. Scrolling back takes it all apart.

How it works

One still stage and one timeline

The section is 460vh tall and the stage inside is sticky at 100vh (100lvh where available). The whole plan is a paused GSAP timeline that ScrollTrigger drives with scrub: the scroll is the time, and scrolling back takes it all apart on its own.

The plan generated in the viewBox

The script draws the plan in a 420 by 284 viewBox: four rows of eleven bays 29 wide, the pillars on the divider, the lanes as real dashes (one element each, so they come in one after the other), the parked cars with a random but always identical turn and offset, from a generator with a fixed seed.

Lines that draw themselves

Walls, stripes, arrows and the ramp hatching have pathLength 1: with stroke-dasharray 1 and stroke-dashoffset from 1 to 0 every line pulls itself from end to end, whatever its real length.

The car following the route

The route is a path with soft corners; the same value from 0 to 1 shortens the dashoffset of the line (and of its blurred twin, the glow) and places the car at getPointAtLength, turned along the direction measured a pixel and a half before and after. At the end a second value rolls it one pixel on and back.

Lines on thresholds

The three lines are not tied to the scroll frame by frame: when the time passes their threshold they start on a spring of their own (rise, blur clearing, the number counting), and pull back if you scroll back.

Values to change

NameFileDefaultWhat it changes
RIDEscript.js1How much scroll the whole plan takes: 2 = twice as long.
BOUNCEscript.js2.4How far a free bay passes its size when it lights up (0 = none).
SETTLEscript.js1.6The pixels the car rolls past its stop before it settles back.
GLOWscript.js1How strong the route glow and the lights behind the panel are.
DIMscript.js0.4How lit the other free bays stay once the bay is chosen (1 = fully lit).
FACT_RISEscript.js12The pixels each line of the product rises from.

Try them in the Playground

When to use it

In the first screen or the ‘how it works’ section of a parking, mobility or car sharing app, a city garage, an airport or a shopping centre with parking, an EV charging service: wherever you want to tell the product while scrolling. The colours are --mint, --cool and --hair in the CSS, the free bays and the chosen one FREE and CHOSEN in the script.

On phones

The same animations at adapted sizes: below 600 pixels the plan goes on top at full width (at most half the height) and the lines go underneath in short rows; on short screens the heading and the small lines go, so it all fits in 341 by 410.

With reduced motion

No long scroll and no movement: the plan is already drawn, the free bays lit, the route traced, the car in its bay and the three lines with their final numbers; the panel fades in.

Pitfalls

  • A dash pattern made with stroke-dasharray cannot also be drawn with the same dashoffset: the lanes are separate dashes coming in one after the other.
  • The car's angle taken from a single point ahead snaps in the corners and at the end of the route: it is measured between a point before and one after, keeping the position inside the length.
  • Lines tied to the scroll frame by frame feel dragged: better a threshold that starts a timed spring, and removes it when you scroll back.

Libraries

GSAP 3.15.0, ScrollTrigger 3.15.0, Lenis 1.3.26, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 11 KB; the libraries: GSAP + ScrollTrigger 45 KB, Lenis 5.3 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 animations