Skip to content
animorio
IT
Back to the library

Notched feature cards

Hover, SVG, TransitionsGSAP, CSS onlyAdvancedCompressed weight: Demo 14 KBGSAP 28 KBFreeDownload the zip

A hover animation on a real product piece: the four features of Yardline's yard logistics system in a row of tall narrow cards, on a deep petrol page. Hovering a closed card opens a rounded notch in its right edge, like the edge of a loading dock, that follows the pointer up and down with a damped lag and holds a lime light. On click the card widens, its contents rise from below one line after the other, the numbers roll, its piece of interface comes alive and the row scrolls to centre it.

Rebuilt from scratch studying terminal-industries.com by Rejouice, Propagande: the idea is theirs; code, copy and images are ours. Read how it’s made

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>
<!--
  "Notched feature cards" 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 yard feature cards that expand with a notch</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/geist@5.3.0/index.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/geist-mono@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="stage">
    <!-- faint yard lanes behind everything, 1px lines with rounded corners -->
    <svg class="lanes" viewBox="0 0 1200 800" preserveAspectRatio="xMidYMid slice" aria-hidden="true">
      <path d="M-20 170H520q40 0 40 40v160q0 40 40 40H1220"/>
      <path d="M-20 650H300q40 0 40-40V520q0-40 40-40H1220"/>
      <path d="M860-20V250q0 40 40 40h320"/>
    </svg>
    <span class="grain" aria-hidden="true"></span>

    <section class="yos" data-yos aria-label="Yardline Yard Operating System">
      <header class="yos__head">
        <div class="yos__words">
          <p class="yos__eyebrow">Yardline YOS</p>
          <h1 class="yos__title">One system, gate to dock.</h1>
        </div>
        <div class="yos__nav">
          <button class="nav-btn" type="button" data-prev aria-label="Previous module">
            <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M10 3.5 5.5 8l4.5 4.5"/></svg>
          </button>
          <button class="nav-btn" type="button" data-next aria-label="Next module">
            <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M6 3.5 10.5 8 6 12.5"/></svg>
          </button>
        </div>
      </header>

      <div class="track" data-track>
        <i class="probe probe--c" data-probe-c aria-hidden="true"></i>
        <i class="probe probe--e" data-probe-e aria-hidden="true"></i>

        <!-- ============================================================ gate check-in -->
        <article class="card" data-card data-tone="lime" role="button" tabindex="0" aria-label="Gate check-in">
          <span class="card__mark" data-mark aria-hidden="true"></span>
          <div class="card__surface" data-surface>
            <span class="card__light" aria-hidden="true"></span>
            <div class="face face--c">
              <p class="face__label">At the<br>gate</p>
              <p class="face__title">Gate check-in</p>
              <p class="face__foot"><span class="face__stat">38s</span>
                <svg class="face__plus" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 3v10M3 8h10"/></svg></p>
            </div>
            <div class="face face--e" aria-hidden="true">
              <div class="rise top"><span class="mono">At the gate</span><span class="live">Live</span></div>
              <h2 class="rise e-title">Gate check-in</h2>
              <p class="rise e-desc">The gate camera reads every plate and seal, and the truck is cleared before the driver rolls down the window.</p>
              <div class="rise panel">
                <ul class="arrivals" data-arrivals>
                  <li><span class="mono">TRL 4821</span><span class="car">Northbay</span><span class="mono t">06:42</span><span class="chip ok"><svg viewBox="0 0 12 12"><path d="M2.6 6.3 5 8.6l4.4-5"/></svg>Cleared</span></li>
                  <li><span class="mono">TRL 3307</span><span class="car">Fernway</span><span class="mono t">06:44</span><span class="chip ok"><svg viewBox="0 0 12 12"><path d="M2.6 6.3 5 8.6l4.4-5"/></svg>Cleared</span></li>
                  <li class="is-now"><span class="mono">TRL 5190</span><span class="car">Corran</span><span class="mono t">06:45</span><span class="chip swap" data-scan><span class="chip__a">Scanning</span><span class="chip__b"><svg viewBox="0 0 12 12"><path data-scan-check pathLength="1" d="M2.6 6.3 5 8.6l4.4-5"/></svg>Cleared</span></span></li>
                  <li><span class="mono">TRL 2264</span><span class="car">Halvik</span><span class="mono t">06:47</span><span class="chip wait">Queued</span></li>
                </ul>
              </div>
              <div class="rise kpis">
                <p class="kpi"><span class="kpi__n"><span data-roll="38"></span><small>s</small></span><span class="kpi__l">Avg. check-in</span></p>
                <p class="kpi kpi--2"><span class="kpi__n"><span data-roll="126"></span></span><span class="kpi__l">Trucks today</span></p>
                <span class="go" aria-hidden="true">Open<svg viewBox="0 0 16 16"><path d="M3 8h9M8.5 4.2 12.3 8l-3.8 3.8"/></svg></span>
              </div>
            </div>
            <svg class="rim" data-rim aria-hidden="true"><path/></svg>
          </div>
        </article>

        <!-- ============================================================ yard map -->
        <article class="card" data-card data-tone="paper" role="button" tabindex="0" aria-label="Yard map">
          <span class="card__mark" data-mark aria-hidden="true"></span>
          <div class="card__surface" data-surface>
            <span class="card__light" aria-hidden="true"></span>
            <div class="face face--c">
              <p class="face__label">In the<br>yard</p>
              <p class="face__title">Yard map</p>
              <p class="face__foot"><span class="face__stat">81%</span>
                <svg class="face__plus" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 3v10M3 8h10"/></svg></p>
            </div>
            <div class="face face--e" aria-hidden="true">
              <div class="rise top"><span class="mono">In the yard</span><span class="live">Live</span></div>
              <h2 class="rise e-title">Yard map</h2>
              <p class="rise e-desc">Every slot, every trailer, updated as they move. New arrivals get a slot and a route the moment they clear.</p>
              <div class="rise panel panel--map">
                <svg class="map" viewBox="0 0 240 124" data-map>
                  <g class="map__lanes" data-slots></g>
                  <path class="map__route" data-route pathLength="1" d="M2 60.5H118q8 0 8 8v1.5"/>
                  <rect class="map__pin" data-pin x="-5" y="-3" width="10" height="6" rx="2"/>
                  <g class="map__tag" data-tag><rect x="-15" y="-9" width="30" height="13" rx="4"/><text x="0" y="0.6">C-07</text></g>
                </svg>
              </div>
              <div class="rise kpis">
                <p class="kpi"><span class="kpi__n"><span data-roll="212"></span><small>/260</small></span><span class="kpi__l">Slots in use</span></p>
                <p class="kpi kpi--2"><span class="kpi__n"><span data-roll="81"></span><small>%</small></span><span class="kpi__l">Capacity</span></p>
                <span class="go" aria-hidden="true">Open<svg viewBox="0 0 16 16"><path d="M3 8h9M8.5 4.2 12.3 8l-3.8 3.8"/></svg></span>
              </div>
            </div>
            <svg class="rim" data-rim aria-hidden="true"><path/></svg>
          </div>
        </article>

        <!-- ============================================================ dock scheduling -->
        <article class="card" data-card data-tone="deep" role="button" tabindex="0" aria-label="Dock scheduling">
          <span class="card__mark" data-mark aria-hidden="true"></span>
          <div class="card__surface" data-surface>
            <span class="card__light" aria-hidden="true"></span>
            <div class="face face--c">
              <p class="face__label">At the<br>dock</p>
              <p class="face__title">Dock scheduling</p>
              <p class="face__foot"><span class="face__stat">96%</span>
                <svg class="face__plus" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 3v10M3 8h10"/></svg></p>
            </div>
            <div class="face face--e" aria-hidden="true">
              <div class="rise top"><span class="mono">At the dock</span><span class="live">Live</span></div>
              <h2 class="rise e-title">Dock scheduling</h2>
              <p class="rise e-desc">Appointments move by themselves when a truck runs late, so no door waits and no driver idles.</p>
              <div class="rise panel panel--dock">
                <div class="dock" data-dock>
                  <div class="dock__axis"><span>06</span><span>08</span><span>10</span><span>12</span></div>
                  <div class="dock__row"><span class="mono">D11</span><span class="dock__lane"><i style="left:4%;width:22%"></i><i style="left:34%;width:18%"></i><i style="left:66%;width:26%"></i></span></div>
                  <div class="dock__row"><span class="mono">D12</span><span class="dock__lane"><i style="left:12%;width:28%"></i><i style="left:52%;width:16%"></i></span></div>
                  <div class="dock__row is-hot"><span class="mono">D14</span><span class="dock__lane"><i style="left:2%;width:14%"></i><i class="hot" style="left:36%;width:30%"><b><span>TRL </span>7730</b></i><i style="left:74%;width:18%"></i></span></div>
                  <div class="dock__row"><span class="mono">D15</span><span class="dock__lane"><i style="left:20%;width:20%"></i><i style="left:58%;width:30%"></i></span></div>
                  <span class="dock__now" data-now><span class="mono">08:46</span></span>
                </div>
              </div>
              <div class="rise kpis">
                <p class="kpi"><span class="kpi__n"><span data-roll="14"></span></span><span class="kpi__l">Doors live</span></p>
                <p class="kpi kpi--2"><span class="kpi__n"><span data-roll="96"></span><small>%</small></span><span class="kpi__l">On time</span></p>
                <span class="go" aria-hidden="true">Open<svg viewBox="0 0 16 16"><path d="M3 8h9M8.5 4.2 12.3 8l-3.8 3.8"/></svg></span>
              </div>
            </div>
            <svg class="rim" data-rim aria-hidden="true"><path/></svg>
          </div>
        </article>

        <!-- ============================================================ trailer tracking -->
        <article class="card" data-card data-tone="stone" role="button" tabindex="0" aria-label="Trailer tracking">
          <span class="card__mark" data-mark aria-hidden="true"></span>
          <div class="card__surface" data-surface>
            <span class="card__light" aria-hidden="true"></span>
            <div class="face face--c">
              <p class="face__label">Across<br>operations</p>
              <p class="face__title">Trailer tracking</p>
              <p class="face__foot"><span class="face__stat">418</span>
                <svg class="face__plus" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 3v10M3 8h10"/></svg></p>
            </div>
            <div class="face face--e" aria-hidden="true">
              <div class="rise top"><span class="mono">Across operations</span><span class="live">Live</span></div>
              <h2 class="rise e-title">Trailer tracking</h2>
              <p class="rise e-desc">One timeline per trailer, from the gate camera to the dock door, with the dwell time counting on its own.</p>
              <div class="rise panel panel--track">
                <div class="trl">
                  <div class="trl__head">
                    <p><span class="mono trl__id">TRL 7730</span><span class="trl__sub">Reefer, 53 ft</span></p>
                    <span class="chip swap" data-status><span class="chip__a">In the yard</span><span class="chip__b"><svg viewBox="0 0 12 12"><path data-status-check pathLength="1" d="M2.6 6.3 5 8.6l4.4-5"/></svg>Door 14</span></span>
                  </div>
                  <div class="trl__line"><span class="trl__fill" data-fill></span>
                    <span class="trl__stop" data-stop style="left:0%"><b>Gate</b><em class="mono">06:42</em></span>
                    <span class="trl__stop" data-stop style="left:46%"><b>Yard</b><em class="mono">06:51</em></span>
                    <span class="trl__stop" data-stop style="left:100%"><b>Dock</b><em class="mono">08:30</em></span>
                  </div>
                </div>
              </div>
              <div class="rise kpis">
                <p class="kpi"><span class="kpi__n"><span data-roll="2:14"></span><small>h</small></span><span class="kpi__l">Dwell</span></p>
                <p class="kpi kpi--2"><span class="kpi__n"><span data-roll="418"></span></span><span class="kpi__l">Trailers tracked</span></p>
                <span class="go" aria-hidden="true">Open<svg viewBox="0 0 16 16"><path d="M3 8h9M8.5 4.2 12.3 8l-3.8 3.8"/></svg></span>
              </div>
            </div>
            <svg class="rim" data-rim aria-hidden="true"><path/></svg>
          </div>
        </article>
      </div>
    </section>

    <svg class="cursor" data-cursor viewBox="0 0 24 24" aria-hidden="true"><path d="M5.2 3.2 18.6 13l-6.1.9 3.6 6.6-2.6 1.3-3.5-6.7-4.6 4.2z"/></svg>
    <p class="sr" aria-live="polite" data-live></p>
  </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.

112 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 “Notched feature cards” 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 deep petrol page, with a veil of grain, two soft lights and a few thin lanes drawn behind, at the top left the small lime label ‘Yardline YOS’ and the title ‘One system, gate to dock.’, on the right two square buttons with arrows. Below, a row of four tall cards: three closed, narrow, each its own colour (lime, warm white, dark green, stone grey), with the mono caps label at the top, the name written vertically, a small figure at the bottom and a plus; one open, wide, dark, with a lime glow in its corner. Every card has a one pixel rim that catches the light at the top and a soft two layer shadow. The open Gate check-in card shows the list of trailer arrivals with times and status badges; in the row of the truck that just arrived a lime light crosses ‘Scanning’ until it turns ‘Cleared’ with a check that draws itself; below, the figures ‘38 s’ and ‘126’ rolling and the lime ‘Open’ button. A drawn pointer arrives and enters Yard map: in the right edge a rounded notch opens, twenty pixels deep, with a line of lime light inside, and the notch goes down and up following the pointer with a slight lag; a soft light follows the pointer on the card. The pointer presses: the card gives and comes back on a spring, widens while the others narrow, turns dark, the row scrolls to centre it, and the contents rise from below one line after the other: the yard map with four lanes of slots, a lime route drawing itself from the gate to slot C-07 with a marker running along it, the slot filling and its tag popping up, the figures ‘212/260’ and ‘81 %’. Then Dock scheduling, with the door schedule of bars growing and the time line dropping, the lime bar of TRL 7730, and Trailer tracking, with the trailer, the Gate, Yard, Dock line filling with lime and the badge turning ‘Door 14’. Then it starts again.

How it works

The shape is a polygon with true corners

The card is a list of points: the four corners and, when the notch is open, the four of the notch on the right edge (a trapezoid whose sides slant NOTCH_SLOPE times the depth). Every corner is rounded with a true arc: from the vertex you step back and forward r/tan(θ/2) along both sides, never more than half a side, and draw the arc with its sweep. The path becomes the clip-path of the card's body.

The notch that follows the pointer

On entering, the depth goes from 0 to NOTCH_DEPTH pixels with a half second power2.out tween. The wanted position is the pointer's Y on the card, kept within NOTCH_SIZE/2 + NOTCH_MARGIN; the real one chases it every frame with exponential damping, pos += (goal − pos)·(1 − e^(−FOLLOW·dt)), which does not depend on the screen's refresh rate.

The 1px rim is the same path

An SVG inside the clipped card draws the same path with a 2 pixel stroke and a gradient: half of the stroke falls outside the clip, so a one pixel line remains that follows the notch too, lighter at the top. The shadow is a drop-shadow on the wrapper, which takes the clipped shape.

Widen in CSS, enter in GSAP

The card's width goes from --cw to --ew with a 0.6 s transition in cubic-bezier(.19,1,.22,1); the path is rebuilt every frame with the new size. The open contents already have their final width, so nothing wraps while the card widens: the lines rise 30 pixels with expo.out in 0.9 s, 0.12 s apart, after 0.15 s. Meanwhile the row scrolls to centre the card, working out the final sizes from two hidden probes.

Rolling digits

Every digit is a column from zero to nine, ten lines tall, inside a one line window: to show digit d the column rises 10·d per cent, with expo.out and a duration that grows a little for each column, so the digits stop one after the other.

Values to change

NameFileDefaultWhat it changes
NOTCH_DEPTHscript.js20How deep the notch cuts into the card, in pixels.
NOTCH_SIZEscript.js0.3How tall the notch is, as a share of the card's height.
NOTCH_MARGINscript.js0.12How close to the corners the notch may go.
NOTCH_RADIUSscript.js20How round the notch's corners are.
NOTCH_SLOPEscript.js0.7How slanted the notch's sides are: 0 is a square cut.
FOLLOWscript.js6How fast the notch follows the pointer.
OPEN_TIMEscript.js0.6Seconds the card takes to widen.
RISEscript.js30How far from below the contents rise, in pixels.
STAGGERscript.js0.12Seconds between one line of the contents and the next.
HOLDscript.js2.4Seconds each card stays open in the walk on its own.
IDLEscript.js5Seconds without touching before the drawn pointer comes back.
AUTOscript.jstrueThe drawn pointer opens the cards by itself.

Try them in the Playground

When to use it

For the features section of a SaaS or a logistics app, for the modules of a platform, for an agency's services: when each item has a small piece of interface to show and you want them all in one row, one open and the others ready.

On phones

The same animation with adapted sizes: the closed cards are 84 pixels wide, the open one about 230, the height follows the screen's and the row scrolls sideways inside the box; the notch follows the resting finger, a tap opens the card. The open card keeps its title, its piece of interface and one figure.

With reduced motion

No moving notch and no widening cards: changing card the row fades out and comes back with the new one already open, the contents fade in, the numbers and the map are already in place and the badges change with a fade.

Pitfalls

  • With the notch closed its four points fall on the edge and two corners become flat or empty: under 0.3 pixels the notch is left out of the polygon, otherwise the arc worked out on a zero length side gives NaN and the clip disappears.
  • A border does not follow a clip-path: the rim is the same path drawn in SVG inside the clip, and the shadow goes on the wrapper as a drop-shadow, because a box-shadow on the clipped piece would be cut off.
  • CSS moves the width and GSAP the press scale, on the same element but on different properties; the clip lives on the child.
  • Centring the card by reading its position while it widens gives the wrong point: the final sizes come from two hidden probes as wide as --cw and --ew.

Libraries

GSAP 3.15.0, Geist (font variabile) 5.3.0, Geist Mono (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 14 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 animations