
Title rising from a line
Transitions, Text, Images
The portfolio of an invented photographer, as a premium card on a near black page: on top a lightbox of opal glass, under it a strip of contact prints with the sprocket holes and the roll numbers printed on the edge. A red grease pencil boxes the chosen shot, and on a click the print leaves its slot with a FLIP transition until it fills the lightbox; the gloss of the paper catches the light and the caption arrives with the place, the film and the year. On the way back the photo flies home, knocks into its slot and the red mark stays, fainter. The photos are real, copyright free (the sea under a hazy sun, the city at night after the rain, the backlit portrait, the jetty in the fog, the dunes), printed by the script with a vignette and film grain.
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>
<!--
"Contact strip portfolio" 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>Ekdahl Photographs</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/fraunces@5.3.0/full-italic.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="stage" data-stage>
<!-- the portfolio of an invented photographer: a lightbox on top and, under it, one strip of contact prints with the
roll numbers printed on the film edge. A red grease pencil boxes the chosen frame, and the print grows out of
its slot (FLIP) until it fills the lightbox; the caption comes in after it. Every photo is a real CC0
photograph printed by the script on a canvas, with the vignette and its own grain -->
<article class="folio" data-folio>
<header class="folio__head">
<span class="brand">
<svg class="brand__mark" viewBox="0 0 24 24" aria-hidden="true">
<circle cx="12" cy="12" r="9.2"/>
<path d="M12 2.8l3.6 7.4M21.2 12l-8.2.9M16.6 20l-4.9-6.6M7.4 20l3.4-7.5M2.8 12l8.2-.8M7.4 4l4.9 6.6"/>
</svg>
<span class="brand__name">Ekdahl</span>
<span class="brand__sub">Photographs</span>
</span>
<span class="roll">Roll 14<span class="roll__more">, coast and city</span></span>
</header>
<div class="viewer" data-viewer>
<div class="glass" data-glass aria-hidden="true">
<span class="glass__ticks"></span>
<span class="hint" data-hint>
<svg class="hint__loupe" viewBox="0 0 24 24"><circle cx="10.5" cy="10.5" r="6.2"/><path d="M15.2 15.2l5 5"/></svg>
<span>Pick a frame from the strip</span>
</span>
</div>
<div class="fly" data-fly>
<canvas class="fly__canvas" data-fly-canvas aria-hidden="true"></canvas>
<span class="fly__sheen" data-sheen aria-hidden="true"></span>
<span class="fly__scrim" data-scrim aria-hidden="true"></span>
</div>
<p class="cap" data-cap aria-live="polite">
<span class="cap__row"><span class="cap__place" data-place>Thyborøn, Denmark</span></span>
<span class="cap__row cap__row--meta"><span class="cap__film" data-film>Black and white, ISO 400</span><span class="cap__year" data-year>2023</span></span>
</p>
<button class="back" type="button" data-back aria-label="Back to the contact strip">
<span class="back__face" data-back-face>
<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M9.8 3.8L5.6 8l4.2 4.2"/></svg>
<span>Contact strip</span>
</span>
</button>
</div>
<div class="strip" data-strip>
<div class="strip__edge strip__edge--top" data-edge-top aria-hidden="true"></div>
<svg class="strip__holes" data-holes-top aria-hidden="true"><rect width="100%" height="100%" fill="url(#holes)"/></svg>
<div class="strip__frames" data-frames></div>
<svg class="strip__holes" data-holes-bottom aria-hidden="true"><rect width="100%" height="100%" fill="url(#holes)"/></svg>
<div class="strip__edge strip__edge--bottom" data-edge-bottom aria-hidden="true"></div>
<svg class="marks" data-marks aria-hidden="true">
<defs>
<pattern id="holes" data-pattern width="9" height="7" patternUnits="userSpaceOnUse">
<rect data-hole x="2" y="0.5" width="5" height="6" rx="1.3" fill="#030303"/>
</pattern>
<filter id="wax" x="-10%" y="-30%" width="120%" height="160%">
<feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" seed="7" result="n"/>
<feDisplacementMap in="SourceGraphic" in2="n" scale="1.8"/>
</filter>
</defs>
</svg>
</div>
</article>
<svg class="pointer" data-pointer viewBox="0 0 24 24" aria-hidden="true">
<path class="pointer__shape" d="M5.2 3.2v15.6l4.1-3.9 2.6 6.1 2.9-1.2-2.6-6h5.7z"/>
</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.
30 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 “Contact strip portfolio” from Animorio and fit it into my siteThe five photos are real and copyright free (CC0), saved as webp next to the demo. Each one is printed once on a canvas at the size of the lightbox: the photo covers the frame keeping its point of interest in view (fx and fy in PHOTOS), and the two black and white ones go through a grayscale filter with a little contrast. Then a single pass over the pixels adds the grain, the vignette and, for black and white, the warm tone of the paper. The demo starts once the five photos have loaded.
The five frames of the strip are not painted again: they are copied from the large canvas, scaled down. So the flying print really is the same picture as the thumbnail, at a resolution that holds up even full size.
The lightbox and the frames share the same 3 to 2 format, so a single scale is enough. The print already sits in its final place; the frame and the lightbox are measured, it is moved and scaled down onto the frame (origin top left) and brought back to zero with power3.inOut. The corner radius is divided by the scale, so it stays at two pixels in flight. Meanwhile it tilts a degree and a half and the shadow grows with a CSS variable.
The red mark is an SVG path worked out on the frame: thirteen points around the box, nudged at random, joined by Catmull-Rom curves, ending past the start like a loop made by hand. It is drawn with pathLength 1 and stroke-dashoffset from 1 to 0, with a second thin stroke shifted by a pixel and a turbulence filter that roughens the edge like wax.
The sprocket holes are an SVG pattern with eight holes per frame, the numbers sit at the centre of each frame and between them; everything is measured again on resize, along with the photos and the marks. The drawn pointer follows a script with GSAP waits (never setTimeout) and calls the same functions as a real click; at the first touch it steps aside.
| Name | File | Default | What it changes |
|---|---|---|---|
FLIGHT | script.js | 0.9 | The seconds the print takes to fly from the strip to the lightbox. |
TILT | script.js | 1.4 | How many degrees the print tilts in flight. |
LIFT | script.js | 1 | How deep the shadow under the flying print is. |
HOLD | script.js | 2.6 | The seconds an opened photo stays on its own before the pointer comes back. |
PENCIL | script.js | 1 | How thick the grease pencil line is. |
GRAIN | script.js | 0.04 | How strong the film grain in the photos is. |
DEVELOP | script.js | 1 | How bright the prints start when they develop at the beginning (0 = no developing). |
SPEED | script.js | 1 | 2 = the walk on its own twice as fast, 0.5 = half. |
LOOP | script.js | true | Repeats the pointer's walk. |
On the work page of a photographer, a photo studio or a videomaker, in the portfolio of a creative agency, in the gallery of a travel blog or on the page of a film lab: wherever photos are picked from a row of thumbnails and the move to the large one should tell the story of the film. Real photos take the place of the script's paintings (just draw the image into each source canvas); the colours are --page, --card, --glass and --pencil in the CSS.
The same animations at adapted sizes: the card is measured on width and height, so on a phone the lightbox, the strip and the caption all stay on screen; the frames stay five, smaller, with the edge numbers and the sprocket holes worked out on their size. With a finger you tap a frame to open it and the photo or the pill to go back.
No flights and no pointer: the card, the lightbox and the strip fade in, the red mark appears without being drawn and the chosen photo fades into the lightbox with its caption; the walk on its own still opens the two shots.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0, Fraunces (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 12 KB; the libraries: GSAP 28 KB.
Tested on 8 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.