Skip to content
animorio
IT
Back to the library

Contact strip portfolio

Images, TransitionsGSAP, CanvasMediumCompressed weight: Demo 12 KBGSAP 28 KBFreeDownload the zip

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.

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>
<!--
  "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>

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.

30 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 “Contact strip portfolio” 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 near black page, with a warm glow behind and a barely visible grain, the portfolio of Ekdahl rises, an invented photographer: a dark card with a one pixel edge that catches the light. At the top the mark with its drawn aperture, ‘Photographs’ and ‘Roll 14, coast and city’. Below, the lightbox of opal glass comes on flickering like a neon tube, with ruler ticks along its edges and the line ‘Pick a frame from the strip’. Further down the contact strip slides in from the side: the black film with its sprocket holes, the roll numbers printed on the edge (12, 12A, 13…) with their small triangle, and below the name of the film with its barcode. The five frames develop one after another, from white to the picture: five real photographs: the sea with a low hazy sun glittering on the water, in black and white, a city at night after the rain, its windows and traffic lights melted into bokeh discs over the wet street, a backlit portrait with the hair lit by the low sun, a small wooden jetty standing in the fog on still water, in black and white, a dune with the grass bent by the wind. A drawn pointer comes in from below, passes over one frame (it lifts two pixels and brightens while the others dim), then stops on the city: a red grease pencil boxes it in a single loop, a little crooked and ending past its start, like by hand. The click: the print leaves its slot and flies until it fills the lightbox, tilting a degree and a half with its shadow stretching underneath, lands with a pixel of bounce and a reflection slides over it as on glossy paper. From below come the place in italics, the film and the year, and at the top the ‘Contact strip’ pill appears. The pointer presses it: the caption drops, the photo goes back to the strip, knocks into its slot on a small spring and the red mark stays, fainter. The same with the sea in black and white; then the pointer leaves, the marks rub off and it starts again. Clicking opens the frame you want; the pill, a click on the photo or Esc takes it back to the strip.

How it works

Real photos, printed on the canvas

The 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 thumbnails come from the same photo

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 FLIP transition

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 grease pencil

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 film edge and the walk on its own

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.

Values to change

NameFileDefaultWhat it changes
FLIGHTscript.js0.9The seconds the print takes to fly from the strip to the lightbox.
TILTscript.js1.4How many degrees the print tilts in flight.
LIFTscript.js1How deep the shadow under the flying print is.
HOLDscript.js2.6The seconds an opened photo stays on its own before the pointer comes back.
PENCILscript.js1How thick the grease pencil line is.
GRAINscript.js0.04How strong the film grain in the photos is.
DEVELOPscript.js1How bright the prints start when they develop at the beginning (0 = no developing).
SPEEDscript.js12 = the walk on its own twice as fast, 0.5 = half.
LOOPscript.jstrueRepeats the pointer's walk.

Try them in the Playground

When to use it

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.

On phones

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.

With reduced motion

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.

Pitfalls

  • A FLIP that changes width and height recalculates the layout every frame and blurs the canvas: with the same format for thumbnail and lightbox a single scale is enough, and the canvas is painted at the large size already.
  • With the scale the rounded corners shrink too and the flying thumbnail turns into a sharp square: the radius is divided by the scale at the start and returns to its value at the end.
  • Painting each thumbnail on its own makes two slightly different pictures and the jump shows on landing: the thumbnail is copied from the same large source.
  • Reading the pixels of a canvas with a photo on it (for the grain) is not allowed when the page is opened from file://: the browser blocks it. The read sits in a try, and there the photos stay clean, without grain.

Libraries

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.

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 animations