
The colour columns
Hover, SVG
The roles panel in a workspace’s settings: a selector with Viewer, Editor and Admin and below it the list of what each role can do. Changing role, the white thumb slides and settles, and the boxes change one after the other: the purple ticks light up in a cascade going down, or close into a lock going back up.
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>
<!--
"Team role permissions" 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>Team role permissions with the ticks that light up in cascade</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">
<!-- the roles panel of a team workspace's settings: a selector with three roles and the list of what each
one can do. Choosing a role slides the thumb, and the ticks light up (or close into a lock) one after
the other down the list, while the count at the bottom rolls -->
<article class="card" data-card>
<header class="head">
<p class="head__title">Role permissions</p>
<p class="head__count"><span data-count>3 of 5</span></p>
</header>
<div class="seg" role="radiogroup" aria-label="Role" data-seg>
<span class="seg__thumb" data-thumb aria-hidden="true"></span>
</div>
<ul class="rows" data-rows></ul>
<p class="foot"><span data-note>Can change content, not the team</span></p>
</article>
<svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 19.2 11l-6.3 1.6-3.3 5.9Z"></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>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.
15 values to change
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 “Team role permissions” from Animorio and fit it into my siteThree buttons in a grid and under them an absolutely positioned thumb: on choice the button is measured with getBoundingClientRect and GSAP takes the thumb’s x and width there with back.out, while a scaleY squashes it and lets it settle. It is a radiogroup: the arrow keys change role.
choose(i) compares, row by row, the new state with the old and animates only the boxes that change, each with CASCADE more seconds of delay. If permissions grow the order goes top to bottom, if they shrink bottom to top.
Four layers: the grey ring, the purple fill scaling from zero with back.out, the tick drawing itself with stroke-dashoffset and the lock coming in from above. On closing, the box makes a small horizontal shake.
| Name | File | Default | What it changes |
|---|---|---|---|
ROLES | script.js | Viewer:2:Can look and comment, nothing else | Editor:3:Can change content, not the team | Admin:5:Can do everything, billing included | The roles, separated by a bar: name:how many permissions it has (counted from the top):the sentence below. |
PERMISSIONS | script.js | View projects, Comment, Edit content, Invite members, Manage billing | The permissions, from the lightest to the heaviest. |
START | script.js | 1 | The role chosen at the start (0 is the first). |
ACCENT | script.js | #5b5bf0 | The colour of the ticks. |
CASCADE | script.js | 0.07 | The seconds between one row and the next. |
REST | script.js | 1.7 | On its own: how long it stays on each role. |
LOOP | script.js | true | Left alone, a pointer tries the roles. |
For the settings of a product used by several people: a workspace, a back office, a CMS, a team tool. It shows at a glance what changes between one role and another, on the members page, when inviting someone new or on the pricing page.
The same card, as wide as the screen minus the margins and with slightly lower rows: the roles are tapped with a finger.
The thumb moves without sliding and the boxes change with a fade, still one after the other, with no bounces or shakes.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 5.8 KB; the libraries: GSAP 28 KB.
Tested on 15 November 2026
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.
Support Animorio
Animorio stays free thanks to the people who support it. If you like, buy us a coffee: it helps us make the next animations.
You asked for
We made it for you: it’s in the library, with the preview, the Playground and the code to copy.
An animation you can’t find, or a site to take apart in the journal: tell us which. We pick the next ones from here.
With your account’s email and password.
or with your email
You’re signed in as .
With your account, you can download the zip of every animation and every pack, for free.