Skip to content
animorio
IT
Back to the library

Exhibition opening

SVG, Hover, TextGSAP, CSS onlyMediumCompressed weight: Demo 9.7 KBGSAP + SplitText 31 KBFreeDownload the zip

The masthead of a made-up photography exhibition, Salt and Silver, at a made-up museum, Harbour Hall. In a dark room with grain the title in a hairline serif comes in piece by piece, every letter from blurred to sharp while its stroke thins down, and "and" writes itself by hand like a signature, the pen slowing in the curves. Two black and white prints hang in the dark: only their crop marks and captions show, and the real photos (the underside of a pier, four palm trees) appear only inside a soft circle around the pointer, which chases it with a lag and opens wider while you press. The Enter the exhibition button shivers with blurred letters on hover.

Rebuilt from scratch studying hollywoodexhibit2026.com by OSMOS, HearstCC, Edoardo Lunardi, Daniel Velasquez, Marjoe Bacus: 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>
<!--
  "Exhibition opening" 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>Salt and Silver, an exhibition of photographs</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/fraunces@5.3.0/full.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/instrument-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="stage" data-stage>
    <!-- the opening page of a made-up photography exhibition, Salt and Silver, at a made-up museum, Harbour Hall.
         The title comes in piece by piece, "and" writes itself like a signature, and two black and white prints
         hidden in the dark show only inside a soft circle around the pointer -->
    <div class="room" aria-hidden="true">
      <div class="room__glow"></div>
    </div>

    <!-- the crop marks and captions of the two prints: always there, very faint -->
    <div class="marks" aria-hidden="true">
      <figure class="print print--a" data-print>
        <span class="crop crop--tl"></span><span class="crop crop--tr"></span>
        <span class="crop crop--bl"></span><span class="crop crop--br"></span>
        <figcaption class="print__cap"><em>Under the Boardwalk</em>, 1961</figcaption>
      </figure>
      <figure class="print print--b" data-print>
        <span class="crop crop--tl"></span><span class="crop crop--tr"></span>
        <span class="crop crop--bl"></span><span class="crop crop--br"></span>
        <figcaption class="print__cap"><em>Four Palms</em>, 1974</figcaption>
      </figure>
    </div>

    <!-- the wide, soft halo of the reveal -->
    <div class="reveal reveal--halo" data-halo aria-hidden="true">
      <div class="print print--a"><img src="pier.webp" alt="" data-photo></div>
      <div class="print print--b"><img src="palms.webp" alt="" data-photo></div>
    </div>
    <!-- the sharp circle of the reveal -->
    <div class="reveal" data-reveal>
      <div class="print print--a"><img src="pier.webp" alt="Black and white photograph from under a wooden pier, its posts running out to sea" data-photo></div>
      <div class="print print--b"><img src="palms.webp" alt="Black and white photograph of four palm trees against a grey sky" data-photo></div>
    </div>

    <header class="head">
      <span class="brand">
        <svg class="brand__mark" viewBox="0 0 24 24" aria-hidden="true">
          <path d="M4.5 20.5V11a7.5 7.5 0 0 1 15 0v9.5"/>
          <path d="M8.5 20.5v-9a3.5 3.5 0 0 1 7 0v9"/>
          <path d="M2.5 20.5h19"/>
        </svg>
        <span>Harbour Hall</span>
      </span>
      <span class="head__right">Season 2026</span>
    </header>

    <section class="opening">
      <p class="kicker" data-kicker>An exhibition of photographs from the coast</p>
      <h1 class="title" aria-label="Salt and Silver">
        <span class="title__line title__line--one"><span class="title__word" data-word>Salt</span></span>
        <span class="title__line title__line--two">
          <svg class="sign" viewBox="0 0 104 60" aria-hidden="true" data-sign>
            <path class="sign__bleed" data-ink-bleed d="M24 37C20 33 11 35 9 43C7 50 15 52 20 46C22 43 23 40 25 36C24 41 23 47 26 50C29 51 32 47 34 42C35 38 36 35 37 34C38 38 37 45 36 50C39 41 43 34 48 34C52 34 51 42 50 46C49 50 53 51 57 48C60 45 63 40 66 36C61 32 53 37 53 44C53 51 61 50 65 42C68 30 71 16 72 8C73 3 69 5 68 12C66 24 65 38 66 46C67 51 72 50 77 46C83 42 91 40 101 41"/>
            <path class="sign__ink" data-ink d="M24 37C20 33 11 35 9 43C7 50 15 52 20 46C22 43 23 40 25 36C24 41 23 47 26 50C29 51 32 47 34 42C35 38 36 35 37 34C38 38 37 45 36 50C39 41 43 34 48 34C52 34 51 42 50 46C49 50 53 51 57 48C60 45 63 40 66 36C61 32 53 37 53 44C53 51 61 50 65 42C68 30 71 16 72 8C73 3 69 5 68 12C66 24 65 38 66 46C67 51 72 50 77 46C83 42 91 40 101 41"/>
          </svg>
          <span class="title__word" data-word>Silver</span>
        </span>
      </h1>
      <p class="dates" data-dates>14 November to 22 February, Gallery Four, Harbour Hall</p>
      <a class="enter" href="#enter" data-enter>
        <span class="enter__label" data-enter-label>Enter the exhibition</span>
        <svg class="enter__arrow" viewBox="0 0 20 20" aria-hidden="true"><path d="M3.5 10h12M11 5.5l4.5 4.5-4.5 4.5"/></svg>
      </a>
    </section>

    <div class="grain" aria-hidden="true"></div>

    <svg class="hand" viewBox="0 0 24 24" data-hand aria-hidden="true">
      <path d="M5 3.2v15.6l4.1-4 2.7 6 2.6-1.1-2.6-5.9h5.8z"/>
    </svg>
  </main>

  <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/SplitText.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 “Exhibition opening” 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 black ground with a faint light in the middle and grain jumping like film, the Harbour Hall mark (an arch drawn in lines) and Season 2026 at the top. In the middle the line "An exhibition of photographs from the coast", then the title in hairline capitals on two lines: SALT, then "and" handwritten in cursive and SILVER. Below, the dates and the place and the Enter the exhibition pill button. Top left and bottom right two prints hang in the dark: only their four corner crop marks and their caption show. The pointer carries a soft circle inside which the real black and white photos appear, the underside of a pier and four palm trees, with a wide blurred halo around it; the crop marks of the print under the circle light up. Left alone, a drawn pointer walks the room, presses on a print (the circle opens with a bounce), passes over the button and the opening starts again.

How it works

The title in pieces

SplitText splits SALT and SILVER into letters. Every letter goes from opacity 0 and blur(6px) to sharp in 0.2 seconds, one every 0.02, like the intro text on the site; the pieces start 0.78 seconds apart, and meanwhile every letter rises from yPercent 6 and drops its weight from 300 to 100 on Fraunces' wght axis, like ink drying.

The signature that slows in the curves

"and" is a single SVG path drawn with stroke-dashoffset. The script samples it at 360 points, measures how much the line turns between one and the next and builds a table of time: where the line bends, the time per unit grows. A tween from 0 to 1 is turned into length through that table, so the pen runs on the straight strokes and brakes in the loops. The duration starts from the site's rule, 0.006 seconds per unit of stroke. Underneath, a thicker copy blurred at 7% makes the ink bleed.

The photo only inside the circle

The two prints sit in a full screen layer with mask-image: a radial-gradient around the pointer, solid up to 55% of the radius and then fading. A second identical layer, blurred and at 30%, has a circle twice as large and makes the halo. Every frame the centre chases the pointer with a 0.1 lerp corrected for real time (1 - 0.9^(dt/16.7)), so the speed is the same at 60 and at 120 Hz.

Press and details

Pressing multiplies the radius by 1.7 with back.out, and on release it comes back with elastic.out. The photos inside move up to 14 pixels against the pointer, and the crop marks of the print nearest to the circle light up in proportion to the distance.

The button's shiver

On hover every letter of Enter the exhibition goes blur 0, 4, 0 pixels, opacity 1, 0.6, 1 and scale 1, 0.9, 1 in 0.6 seconds, 0.02 apart: a shiver running along the word, like the buttons on the site. The arrow slides 3 pixels, the border lights up, and on press the button sinks to 0.96 and comes back on a spring.

Values to change

NameFileDefaultWhat it changes
LETTER_TIMEscript.js0.2Seconds each letter of the title takes to come into focus (the site uses 0.2).
LETTER_STAGGERscript.js0.02Seconds between one letter and the next (the site uses 0.02).
PIECE_GAPscript.js0.3Seconds between one piece of the title and the next (the site uses 0.3).
PEN_SPEEDscript.js0.006Seconds for every unit of the signature's stroke (the site uses 0.006).
PEN_SLOWscript.js2.2How much the pen slows in the curves: 0 keeps an even speed.
RADIUSscript.js0.19Radius of the circle, as a share of the shorter side of the screen.
FEATHERscript.js0.45Softness of the circle's edge: 0 hard, 1 all fade.
FOLLOWscript.js0.1How quickly the circle chases the pointer (the site uses 0.1).
PRESS_GROWscript.js1.7How much wider the circle opens while you press.
HALOscript.js0.3Strength of the wide, blurred halo around the circle.
SHIVERscript.js0.6Seconds of the button's shiver on hover (the site uses 0.6).
LOOPscript.jstrueLeft alone, the drawn pointer tours the room and the opening starts again.

Try them in the Playground

When to use it

For the opening page of an exhibition, a museum, a gallery, a photographer's portfolio or the site of a photography or film festival: when the images are the main act and the visitor should discover them alone, with the curiosity of a torch in a dark room.

On phones

The same animation with adapted sizes: the title is sized on width and height, the prints are smaller and the captions hide, the crop marks stay. With a finger the circle follows the touch and opens while you hold.

With reduced motion

Title, signature and texts already in place. No pointer walking: the two photos fade gently in and out, one at a time, inside their still circle; with a real pointer the circle sits right under it, with no lag or bounce, and the button does not shiver.

Pitfalls

  • The mask has to be redrawn every frame with pixel values: CSS variables inside a mask-image radial-gradient do not always repaint in Safari, writing the whole string is safer.
  • A per-frame lerp (0.1 each tick) runs faster on 120 Hz screens, the site's own uTime mistake: here the factor is corrected with the elapsed time.
  • The signature's stroke must not use vector-effect: non-scaling-stroke: with it Chrome counts the dashes in screen pixels while getTotalLength stays in viewBox units, and the signature shows up in pieces before it is written. The width is recomputed at resize instead, divided by the scale of the SVG.
  • The blur filter on the letters must be cleared at the end (clearProps), or the text stays a rasterised layer and looks less sharp.
  • The title has a soft dark shadow to stand out from a bright photo, but SILVER's falls over the signature placed before it: the signature has position relative and z-index 1.

Libraries

GSAP 3.15.0, SplitText 3.15.0, Fraunces (font variabile) 5.3.0, Instrument Sans (font variabile) 5.3.0.

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

Testing

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