
Stacking certificates
Hover, Images
The “The people” section of Halden & Roe, a made-up architecture studio, on warm paper: six narrow strips with real black-and-white portraits and upright initials. As the pointer passes, the strip widens like an accordion on a spring while its neighbours narrow, rises by a few pixels, the photo slowly takes its colour and the name, the role and a detail rise at the bottom. On a phone, a three-by-two grid that opens with a tap.
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>
<!--
"Portrait accordion" 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 people of the studio, portraits that widen as you pass</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 people" section of Halden & Roe, a made-up architecture studio. Six narrow strips hold six real portraits
in black and white. The strip under the pointer widens on a spring while its neighbours make room, the photo
slowly takes its colour and the name, the role and a small detail rise from the bottom. Narrow strips only show
the initials, standing upright. -->
<main class="palco" data-palco>
<header class="testa">
<p class="marchio">
<svg class="marchio__segno" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 20V8l8-4 8 4v12" /><path d="M4 20h16" /><path d="M10 20v-6h4v6" /></svg>
Halden & Roe
</p>
<h1 class="titolo">The people <em>behind the drawings.</em></h1>
<p class="sotto">Six of us, two desks: Oslo and Lisbon.</p>
</header>
<section class="fila" data-fila aria-label="The people">
<div class="mezza" data-mezza>
<article class="persona" data-persona tabindex="0" aria-label="Ingrid Halden, founding partner, since 2009">
<div class="persona__foto"><img src="ritratto-ingrid.webp" alt="" width="560" height="640" decoding="async" data-img></div>
<i class="persona__velo" aria-hidden="true"></i>
<span class="persona__iniziali" aria-hidden="true" data-iniziali>IH</span>
<svg class="persona__freccia" data-freccia viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 11.5 11.5 4.5M6 4.5h5.5V10" /></svg>
<div class="persona__scheda" aria-hidden="true">
<i class="persona__filo" data-filo></i>
<span class="riga"><span class="nome" data-riga>Ingrid Halden</span></span>
<span class="riga"><span class="ruolo" data-riga>Founding partner</span></span>
<span class="riga"><span class="dettaglio" data-riga>Since 2009</span></span>
</div>
</article>
<article class="persona" data-persona tabindex="0" aria-label="Tomás Roe, founding partner, Lisbon desk">
<div class="persona__foto"><img src="ritratto-tomas.webp" alt="" width="560" height="640" decoding="async" data-img></div>
<i class="persona__velo" aria-hidden="true"></i>
<span class="persona__iniziali" aria-hidden="true" data-iniziali>TR</span>
<svg class="persona__freccia" data-freccia viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 11.5 11.5 4.5M6 4.5h5.5V10" /></svg>
<div class="persona__scheda" aria-hidden="true">
<i class="persona__filo" data-filo></i>
<span class="riga"><span class="nome" data-riga>Tomás Roe</span></span>
<span class="riga"><span class="ruolo" data-riga>Founding partner</span></span>
<span class="riga"><span class="dettaglio" data-riga>Lisbon desk</span></span>
</div>
</article>
<article class="persona" data-persona tabindex="0" aria-label="Maren Okafor, lead architect, since 2014">
<div class="persona__foto"><img src="ritratto-maren.webp" alt="" width="560" height="640" decoding="async" data-img></div>
<i class="persona__velo" aria-hidden="true"></i>
<span class="persona__iniziali" aria-hidden="true" data-iniziali>MO</span>
<svg class="persona__freccia" data-freccia viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 11.5 11.5 4.5M6 4.5h5.5V10" /></svg>
<div class="persona__scheda" aria-hidden="true">
<i class="persona__filo" data-filo></i>
<span class="riga"><span class="nome" data-riga>Maren Okafor</span></span>
<span class="riga"><span class="ruolo" data-riga>Lead architect</span></span>
<span class="riga"><span class="dettaglio" data-riga>Since 2014</span></span>
</div>
</article>
</div>
<div class="mezza" data-mezza>
<article class="persona" data-persona tabindex="0" aria-label="Jonas Vik, model maker, Oslo workshop">
<div class="persona__foto"><img src="ritratto-jonas.webp" alt="" width="560" height="640" decoding="async" data-img></div>
<i class="persona__velo" aria-hidden="true"></i>
<span class="persona__iniziali" aria-hidden="true" data-iniziali>JV</span>
<svg class="persona__freccia" data-freccia viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 11.5 11.5 4.5M6 4.5h5.5V10" /></svg>
<div class="persona__scheda" aria-hidden="true">
<i class="persona__filo" data-filo></i>
<span class="riga"><span class="nome" data-riga>Jonas Vik</span></span>
<span class="riga"><span class="ruolo" data-riga>Model maker</span></span>
<span class="riga"><span class="dettaglio" data-riga>Oslo workshop</span></span>
</div>
</article>
<article class="persona" data-persona tabindex="0" aria-label="Leonor Abreu, landscape architect, since 2019">
<div class="persona__foto"><img src="ritratto-leonor.webp" alt="" width="560" height="640" decoding="async" data-img></div>
<i class="persona__velo" aria-hidden="true"></i>
<span class="persona__iniziali" aria-hidden="true" data-iniziali>LA</span>
<svg class="persona__freccia" data-freccia viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 11.5 11.5 4.5M6 4.5h5.5V10" /></svg>
<div class="persona__scheda" aria-hidden="true">
<i class="persona__filo" data-filo></i>
<span class="riga"><span class="nome" data-riga>Leonor Abreu</span></span>
<span class="riga"><span class="ruolo" data-riga>Landscape</span></span>
<span class="riga"><span class="dettaglio" data-riga>Since 2019</span></span>
</div>
</article>
<article class="persona" data-persona tabindex="0" aria-label="Sami Lindqvist, structures, Lisbon desk">
<div class="persona__foto"><img src="ritratto-sami.webp" alt="" width="560" height="640" decoding="async" data-img></div>
<i class="persona__velo" aria-hidden="true"></i>
<span class="persona__iniziali" aria-hidden="true" data-iniziali>SL</span>
<svg class="persona__freccia" data-freccia viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 11.5 11.5 4.5M6 4.5h5.5V10" /></svg>
<div class="persona__scheda" aria-hidden="true">
<i class="persona__filo" data-filo></i>
<span class="riga"><span class="nome" data-riga>Sami Lindqvist</span></span>
<span class="riga"><span class="ruolo" data-riga>Structures</span></span>
<span class="riga"><span class="dettaglio" data-riga>Lisbon desk</span></span>
</div>
</article>
</div>
</section>
<footer class="piede">
<span>Est. 2009</span>
<span class="piede__riga" aria-hidden="true"></span>
<span>Join the studio</span>
</footer>
<svg class="pilota" data-pilota viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 19.2 12l-6.3 1.5-3.4 5.8z" /></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.
46 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 “Portrait accordion” from Animorio and fit it into my siteEach strip has a number, its flex-grow, and a target: OPEN for the one under the pointer, NEIGHBOUR for its two neighbours, 1 for the rest. On every frame of the GSAP ticker a spring (STIFFNESS and DAMPING) pulls the number towards the target, in two half steps to stay stable: if the pointer runs from strip to strip the springs turn midway without a jolt, and flexbox does the sum.
Each strip's img is as wide as an open strip (--largo, measured on the row and recalculated on resize), centred with xPercent -50 and object-fit cover. So a widening strip uncovers the photo instead of enlarging it, and the narrow ones show the face in the middle.
The photo's filter is written with a variable: grayscale(calc(1 - var(--c))), with a touch of contrast and light changing along. GSAP takes --c from 0 to 1 in COLOUR_TIME seconds; another variable, --a, darkens the veil at the bottom and lengthens the strip's shadow.
Name, role and detail each sit in an overflow hidden window and rise from yPercent 112 to 0 with expo.out, staggered, after the terracotta thread draws itself with scaleX. On the way out they go to -112 and, only if the strip is still closed, go back below. The card has the fixed width of an open strip, so the text never wraps while the strip grows.
A looping timeline moves an SVG pointer towards the centre of four strips: the target is read again on every frame, because the strip widens while the pointer arrives. The first real pointermove, or a tap, stops the pilot.
| Name | File | Default | What it changes |
|---|---|---|---|
OPEN | script.js | 4.2 | How many times wider than the others the strip under the pointer gets. |
NEIGHBOUR | script.js | 0.82 | How wide the strips next to it stay (1 = like the others). |
STIFFNESS | script.js | 210 | How stiff the spring of the strips is. |
DAMPING | script.js | 17 | How quickly the spring settles (lower = more bounce). |
COLOUR_TIME | script.js | 1.3 | How many seconds a portrait takes to get its colour. |
LIFT | script.js | 4 | How many pixels the open strip rises. |
ROW_OPEN | script.js | 1.45 | On a phone, how much taller the row of the open portrait gets. |
GRAIN | script.js | 0.18 | How much film grain lies on the photos. |
For the “About us” or “Team” section of an architecture or design studio, an agency, a collective portfolio or a landing page that wants to show its people without a grid of identical cards. Swap the photos in the six img tags of the HTML (the webp files in the folder), names and roles in the lines, the colours in :root.
The same animations at adapted sizes: the strips sit in a three-by-two grid measured in vh and open with a tap (a second tap closes them); the row of the open portrait also grows taller, and the initials sit in the bottom corner so they do not cover the face.
No movement: the strip widens at once, with no spring, no lift and no zoom; the colour, the lines, the thread and the arrow fade in.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 8.4 KB; the libraries: GSAP 28 KB.
Tested on 5 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.