Skip to content
animorio
IT
All components

Access request notification

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

The notification of Lumefold, an invented docs app, like a Dribbble shot on black: «Maya Aldren requested access to Q4 Roadmap», with her note. A two-option switch picks Can view or Can edit, with the pill sliding on a spring and the line below saying what it will mean. Approve gives under the finger, a small arc spins and Maya's avatar leaves the card, flies on an arc into the row of people the document is shared with, the others make room and the count rolls up by one; the card folds into a green check that draws itself. Deny folds it into a red cross and the card leans away. Underneath, the next requests wait stacked and come forward one at a time.

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>
<!--
  "Access request 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 document access request with the avatar that joins the collaborators</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 request in Lumefold, an invented docs app: someone asks to open a document. Pick Can view or Can edit,
         Approve, and their avatar flies into the row of people the document is shared with; Deny and the card leans
         away. The next requests wait stacked under the card -->
    <section class="req" data-req aria-label="Access requests">
      <div class="req__ghost req__ghost--far" data-ghost aria-hidden="true"><span class="req__ghost-line" data-ghost-line></span></div>
      <div class="req__ghost req__ghost--near" data-ghost aria-hidden="true"><span class="req__ghost-line" data-ghost-line></span></div>

      <article class="card" data-card>
        <span class="card__light" data-light aria-hidden="true"></span>
        <header class="card__head">
          <span class="card__app" aria-hidden="true">
            <svg viewBox="0 0 20 20"><path d="M6 3.5h5.6L15 6.9v9.1a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-11.5a1 1 0 0 1 1-1z"/><path d="M11.4 3.6v3.5H15"/><path class="card__app-line" d="M7.6 10.6h4.8M7.6 13.2h3.2"/></svg>
          </span>
          <span class="card__from">Lumefold <span class="card__sep">·</span> Access request</span>
          <span class="card__time" data-time>now</span>
        </header>

        <div class="card__body" data-body>
          <div class="card__ask" data-ask>
            <div class="card__who">
              <span class="avatar avatar--big" data-avatar><span data-ini>MA</span></span>
              <p class="card__line">
                <strong data-name>Maya Aldren</strong> requested access to
                <span class="chip" data-chip>
                  <svg class="chip__icon" viewBox="0 0 16 16" aria-hidden="true" data-chipicon><path d="M4.5 2.5h4.6l2.4 2.4v8.1a.5.5 0 0 1-.5.5h-6.5a.5.5 0 0 1-.5-.5V3a.5.5 0 0 1 .5-.5z"/><path d="M6.2 8.2h3.6M6.2 10.4h2.4"/></svg>
                  <span data-doc>Q4 Roadmap</span>
                </span>
              </p>
            </div>
            <p class="card__note" data-note>“Need it for Thursday’s review.”</p>

            <div class="seg" role="radiogroup" aria-label="Permission" data-seg>
              <span class="seg__pill" data-pill aria-hidden="true"></span>
              <button class="seg__opt" type="button" role="radio" aria-checked="true" data-role="view">
                <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M1.8 8s2.3-4.2 6.2-4.2S14.2 8 14.2 8s-2.3 4.2-6.2 4.2S1.8 8 1.8 8z"/><circle cx="8" cy="8" r="1.9"/></svg>
                <span>Can view</span>
              </button>
              <button class="seg__opt" type="button" role="radio" aria-checked="false" data-role="edit">
                <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M10.6 2.9l2.5 2.5-7.4 7.4-3.1.6.6-3.1z"/><path d="M9.3 4.2l2.5 2.5"/></svg>
                <span>Can edit</span>
              </button>
            </div>
            <p class="card__hint" aria-hidden="true"><span class="card__hint-in" data-hint>Maya will be able to read and comment.</span></p>

            <div class="card__actions">
              <button class="btn btn--ghost" type="button" data-deny><span class="btn__face">Deny</span></button>
              <button class="btn btn--main" type="button" data-approve>
                <span class="btn__face" data-approveface>
                  <span class="btn__words" data-approvewords>Approve</span>
                  <svg class="btn__spin" viewBox="0 0 20 20" aria-hidden="true" data-spin><circle cx="10" cy="10" r="7" pathLength="1"/></svg>
                </span>
              </button>
            </div>
          </div>

          <div class="card__done" data-done aria-hidden="true">
            <span class="seal" data-seal>
              <svg viewBox="0 0 28 28" aria-hidden="true">
                <circle class="seal__ring" data-ring cx="14" cy="14" r="12" pathLength="1"/>
                <path class="seal__mark" data-mark pathLength="1" d="M8.6 14.4l3.5 3.5 7.3-7.6"/>
              </svg>
            </span>
            <span class="card__done-text">
              <span class="card__done-title" data-donetitle>Maya can now edit</span>
              <span class="card__done-line" data-doneline>We let Maya know by email.</span>
            </span>
          </div>
        </div>

        <footer class="card__foot">
          <span class="card__shared">Shared with</span>
          <span class="stack" data-stack aria-hidden="true"></span>
          <span class="card__count" aria-live="polite"><span class="card__count-roll" data-countbox><span data-count>4 people</span></span></span>
        </footer>
      </article>
    </section>

    <svg class="pointer" data-pointer viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2l13.6 8.1-6.1 1.2-3.1 5.6z"/></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.

40 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 “Access request 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 black page sits a dark card with soft corners, a one pixel edge, a hair of light on the top edge, a layered shadow with a bluish glow and inside a soft light that follows the pointer. Under the card, narrower and lower, two cards of the stack peek out with the name and document of the requests that wait. At the head the app icon, Lumefold · Access request and now. Then Maya's avatar with her initials on a gradient, «Maya Aldren requested access to» and the document in a pill with its icon, and below in italics the note «Need it for Thursday's review.». A dark two-option switch, Can view with the eye and Can edit with the pencil: the drawn pointer picks Can edit, the light pill slides, stretches for a moment and settles, and the line below rolls from «Maya will be able to read and comment.» to «Maya will be able to edit and share.». Then Approve: the cream button gives and comes back on a spring, the label moves aside and a small arc spins next to it; the avatar leaves the card, flies on an arc to the bottom of the card getting smaller with its shadow stretching mid-flight, the Shared with row makes room moving the other avatars, the avatar lands in front with a little bounce and «4 people» rolls into «5 people». The card folds on a spring: the lines rise blurred, in their place a green seal whose circle and check draw themselves, «Maya can now edit» and «We let Maya know by email.». Then the card lifts and fades, and the second in the stack comes forward: Theo Lindqvist asks for Payroll 2026; the pointer presses Deny, the avatar dims, the seal becomes a red cross with «Request declined» and the card leaves to the side, leaning. Ines Moreau arrives for Brand guidelines, approved with Can view, and the round starts again. Touched, the notification is yours: the switch works by click or with the arrow keys, Approve and Deny work the same way.

How it works

The arc flight worked out by hand

On Approve the avatar and the row are measured with getBoundingClientRect, relative to the card, and a copy of the avatar travels on a quadratic Bézier: the control point sits halfway and ARC pixels above the higher of the two. A number t from 0 to 1 tweened by GSAP on power2.inOut gives the position on every frame, the size goes from 40 to 24 pixels and the avatar leans with sin(πt). The shadow stretches mid-flight and comes back.

The row that makes room

A third of the way into the flight the new avatar enters the head of the row unseen: the others slide STEP pixels on a spring and, past SHOWN, shrink and vanish; the row widens with them. On landing the copy disappears, the real avatar appears in its place with a bounce and the count of people rolls up by one.

The switch and the card that folds

The switch pill goes to the chosen option with back.out and meanwhile stretches 7% and comes back with elastic.out; the explanation line rolls in the direction of the choice. To fold the card the height of the question and of the result are measured and the height is tweened between them, while the question rises blurred and the seal draws its circle and check (or cross) with stroke-dashoffset and pathLength 1.

The stack and the pilot

The next requests are two narrower, lower cards behind the real one; when a request is closed the card leaves (upwards if approved, sideways and leaning if declined), is filled with the next request and comes back from the position of the first in the stack, while the stack moves forward one place. A drawn pointer plays the round by itself with promises tied to gsap.delayedCall; the first real pointer move, a touch or a key stops it.

Values to change

NameFileDefaultWhat it changes
FLYscript.js0.9Seconds the avatar flies from the card into the row of collaborators.
ARCscript.js54Pixels the flight rises above the straight line.
BOUNCEscript.js1.6How far the springs go past the mark before settling (0 none).
STEPscript.js20Pixels between two avatars in the row.
SHOWNscript.js4How many avatars the row shows at most.
HOLDscript.js1.7Seconds the green check stays before the next request.
TILTscript.js4Degrees a declined card leans as it leaves.
SPEEDscript.js12 = the pointer and the pauses twice as fast, 0.5 = half.
LOOPscript.jstrueLeft alone, the pointer goes through the requests again and again.

Try them in the Playground

When to use it

In docs, files, design or project management apps, when someone asks to open something shared: the notification lets you pick the permission and decide in one gesture, and shows right away where the person ended up. It also works for team invites, requests to join a group or a channel, and an admin panel.

On phones

The same animation with sizes adapted: the card is 92% of the screen wide and fits the box; the buttons and the switch work with a finger, and the light on the card follows the touch. Under 520 pixels of height the italic note is hidden.

With reduced motion

Nothing moves: the pill jumps to the option, the avatar doesn't fly but fades in in the row, the card folds with a fade and the seal arrives already drawn, and the requests swap with a fade. The drawn pointer is hidden; the round goes on with its own timing.

Pitfalls

  • The flight is measured relative to the card, not the page: the card sits in a box that is scaled down in the page, and page coordinates would have moved the landing.
  • The new avatar joins the row unseen before landing, so the others have already made room when it arrives; added on arrival, the row jumped.
  • To fold the card the height is measured on the result made visible a moment earlier: measured hidden it was zero.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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