Skip to content
animorio
IT
Back to the library

Name around the photo

Intro, Text, ImagesGSAP, CanvasMediumCompressed weight: Demo 6.6 KBGSAP + CustomEase 31 KBFreeDownload the zip

The opening of an electronic musician’s site: the photo frame starts as big as the page and shrinks into its slot between the two words of the name, which come in from both sides, stop a little apart and then close up around the photo. Inside, four real black and white photos (stage lights in the haze, a speaker, the knobs of a synthesizer, a microphone) change every second; underneath, an equalizer that only plays with the sound on and a Sound OFF / Sound ON button whose two words trade places.

Rebuilt from scratch studying paulkalkbrenner.net by Holographik, Ilja van Eck: the idea is theirs; code, copy and images are ours. Read how it’s made

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>
<!--
  "Name around the photo" 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 hero title whose name opens around the photo</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- the opening of the site of an invented electronic musician from Berlin -->
  <header class="barra" data-nav>
    <a class="barra__marchio" href="#" aria-label="Kasimir Tessmar, home">
      <svg viewBox="0 0 32 32" aria-hidden="true">
        <circle cx="16" cy="16" r="14.5" />
        <path d="M11 9v14M11 16.4 19.2 9M13.6 14.2 20.6 23" />
      </svg>
    </a>
    <nav class="barra__voci" aria-label="Main">
      <a href="#" class="voce" data-roll>Music</a>
      <a href="#" class="voce" data-roll>Tour</a>
      <a href="#" class="voce voce--larga" data-roll>About</a>
      <a href="#" class="voce voce--larga" data-roll>Journal</a>
      <a href="#" class="voce" data-roll>Store</a>
    </nav>
  </header>

  <main class="apertura">
    <h1 class="nome" data-name aria-label="Kasimir Tessmar">
      <span class="nome__parola" data-word aria-hidden="true">Kasimir</span><span class="cornice" data-frame aria-hidden="true"><span class="cornice__tenuta" data-hold><span class="cornice__foto" data-photos><img src="luci.webp" alt="Beams of stage light through the haze over the crowd" width="1024" height="683" decoding="async"><img src="cassa.webp" alt="" width="1024" height="685" decoding="async"><img src="manopole.webp" alt="" width="1024" height="683" decoding="async"><img src="microfono.webp" alt="" width="960" height="657" decoding="async"></span><span class="cornice__grana" data-grain></span><span class="cornice__filo" data-hair></span></span></span><span class="nome__parola" data-word aria-hidden="true">Tessmar</span>
    </h1>
  </main>

  <footer class="fondo">
    <div class="fondo__ascolto">
      <div class="eq" data-eq aria-hidden="true"><i></i><i></i><i></i><i></i><i></i><i></i><i></i></div>
      <div class="fondo__righe">
        <span class="riga"><span class="riga__dentro fioco" data-state>Paused</span></span>
        <span class="riga"><span class="riga__dentro">Slow Engine</span></span>
      </div>
    </div>
    <p class="fondo__frase"><span class="riga"><span class="riga__dentro">Electronic music from Berlin: records, live sets</span></span><span class="riga"><span class="riga__dentro">and twenty years of very late nights.</span></span></p>
    <button class="suono" type="button" data-sound aria-pressed="false">
      <span class="riga"><span class="riga__dentro suono__finestra"><span class="suono__scritta" data-roll>Sound OFF</span><span class="suono__scritta" data-roll>Sound ON</span></span></span>
    </button>
  </footer>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/CustomEase.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.

29 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 “Name around the photo” 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

At first the whole page is one black and white photo: beams of light in the haze of a stage, above the heads of the crowd. After just over half a second the frame shrinks, in a second and a half, to the size of a small photo in the middle of the line. As it shrinks, “Kasimir” comes in from the left and “Tessmar” from the right; they stop a little apart and the photo stops in the middle of the gap they leave. Then everything closes up: the words go back to their places against the frame, the letters tighten by a hair, the photo stops zooming and the menu bar drops in from the top. At the very end the two words lean one pixel towards the photo and back, and a thin light line appears around the photo. Inside the frame the photos change every second (the lights, a speaker cone, the knobs of a synthesizer, a microphone in the smoke of the spotlights), all real photos turned black and white, with grain that moves in steps. Underneath, line by line, come “Paused” and the title of the track, a sentence and the Sound OFF button. The button presses itself: it squashes, bounces, the two words trade places and the equalizer starts playing, its seven bars jumping each on its own. Before the opening starts again the sound goes off (the bars fall back one after the other with a small bounce) and the frame grows back over the page.

How it works

A frame inside the line

The name is a single flex line: word, frame, word. The frame is 0.75 em wide with a 1.5 ratio, so it always follows the size of the type; inside it an absolute box is what GSAP widens, moves and shrinks, while the frame keeps its place in the line.

As big as the page

The start is worked out from the frame’s real position: width and height at 105% of the window, x and y equal to its distance from the edge, with the sign flipped. So it covers the whole page at any size. Then in 1.4 seconds it goes back to 100% with the site’s curve, 0.625, 0.05, 0, 1.

The gap between the words

The words start at xPercent −180 and 120 and stop at 30 and 42: the first stops 30% of its width past its place, the second 42%. The photo stops in the middle of the gap they leave, worked out in pixels from the two widths; then words and photo go back to zero together, in one second.

Photos that take turns

The four photos are real images in the folder (webp files about 1000 pixels wide), stacked with object-fit: cover and turned black and white by CSS with grayscale and a touch of contrast, so the same colour photo works. Every second the new one comes in over 0.3 s and the old one leaves 0.4 s later, so the background never shows between them. On top, a 128 pixel tile of noise moves in five steps.

The equalizer that stops

Each bar has its own tween that starts another one when it ends, with a random height and duration (scaleY between 0.1 and 1, from 0.12 to 0.4 seconds). With the sound off the loop stops and each bar falls back to its rest height with an elastic, one after the other.

Values to change

NameFileDefaultWhat it changes
OPENscript.js1.4How many seconds the frame takes to shrink from the page into its slot.
WORDSscript.js1.2How many seconds the two words take to come in from the sides.
CLOSEscript.js1How many seconds words and photo take to close up.
FIRST_STOPscript.js30Where the first word stops before closing up (percent of its width).
SECOND_STOPscript.js42Where the second word stops before closing up.
CYCLEscript.js1How many seconds each photo stays in the frame.
BAR_MINscript.js0.1How low the equalizer bars go while it plays.
BAR_SPEEDscript.js1How fast the equalizer bars move.
GRAINscript.js0.16How much grain is on the photos.
HOLDscript.js6.5How many seconds the finished opening stays before it plays again.
SPEEDscript.js1Speed of everything: 2 twice as fast, 0.5 half as fast.

Try them in the Playground

When to use it

For the opening of the site of a musician, a dj, a photographer, a band or anyone with a name to show big: the name stays the headline, and the photo fits inside it without taking its place.

On phones

The same animation: the name stays on one line, sized on both width and height, the frame starts from the phone’s whole page and the sentence in the middle of the bottom row hides, leaving the equalizer and the sound button.

With reduced motion

Nothing moves: the name appears already closed around the photo, in a fade, the photos change only with fades and the equalizer goes from one height to another without jumping.

Pitfalls

  • The frame keeps its place in the line and GSAP only moves the box inside it: animating the frame would widen the line and make the words jump.
  • The start and the first stop are in pixels (from the frame’s real position and the words’ widths): on resize the timeline is invalidated and reads the numbers again without starting over.
  • Between two photos the old one leaves 0.4 seconds after the new one has come in: if they went together, halfway through the dark background of the frame would show.
  • The bars at rest do not drop to the minimum, which would look like a row of dots: they keep the heights of the last beat.
  • At the start the photo covers the whole page from a 1024 pixel wide webp: it holds up because the haze softens it and the grain covers it; a sharp photo would need a wider file, at least as wide as the screen.

Libraries

GSAP 3.15.0, CustomEase (GSAP) 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 6.6 KB; the libraries: GSAP + CustomEase 31 KB.

Testing

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