Skip to content
animorio
IT
Back to the library

Photo ring

Scroll, ImagesGSAP, CSS onlyMediumCompressed weight: Demo 9.3 KBGSAP + ScrollTrigger 45 KBLenis 5.3 KBFreeDownload the zip

Scroll inside the preview

The page of a survey by the Larkfield Foundation, a made-up foundation: as you scroll the stage pins and twelve tiles, eight real photos of the places people reach and four earth coloured squares, bloom one by one on a ring around a question. The ring turns half a circle while every photo stays upright, the paper turns yellow, the answer takes the place of the question and in the end the tiles fly away. Inspired by the Where Opportunity Takes Root site.

Rebuilt from scratch studying opportunity.waltonfamilyfoundation.org by Gladeye: 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>
<!--
  "Photo ring" 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>Larkfield Foundation, the photo ring</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/newsreader@5.3.0/opsz.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/newsreader@5.3.0/opsz-italic.css">
  <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>
  <!-- a page of the Open Doors Survey of the Larkfield Foundation, a made-up foundation. In the middle a stage stays
       pinned while you scroll: photos of the places people reach (a library, a park, a bus, a market) and a few earth
       coloured tiles bloom one by one on a ring around a question, the ring turns half a circle while every tile stays
       upright, the paper warms to yellow and the answer replaces the question, then the tiles fly out -->
  <header class="testa" data-entra>
    <p class="testa__marca">
      <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M4 17V8.5L10 3l6 5.5V17" /><path d="M8.2 17v-4.6h3.6V17" /></svg>
      Larkfield Foundation
    </p>
    <p class="testa__voce">The Open Doors Survey</p>
  </header>

  <section class="apertura" data-apertura>
    <p class="occhiello" data-entra>Spring 2026</p>
    <h1 class="apertura__titolo" data-entra>Where do small towns <em>open up?</em></h1>
    <p class="apertura__frase" data-entra>We asked 4,210 people in 38 small towns which doors they can reach.</p>
    <span class="apertura__filo" aria-hidden="true" data-filo></span>
  </section>

  <section class="cerchio" data-cerchio aria-label="Places people can reach">
    <div class="palco" data-palco>
      <svg class="orbita" data-orbita aria-hidden="true"><circle data-orbita-cerchio pathLength="1" /></svg>
      <div class="anello" data-anello>
        <figure class="tessera tessera--foto" data-tessera data-l="0.15" data-r="1.235" data-nome="Library" data-dato="71%">
          <div class="tessera__galla" data-galla><div class="tessera__dentro">
            <img src="sala-di-lettura.webp" width="720" height="583" alt="A busy library reading room with people at long tables">
          </div></div>
          <figcaption class="tessera__nota"><span>Library</span><b>71%</b></figcaption>
        </figure>
        <figure class="tessera tessera--colore tessera--ocra" data-tessera data-l="0.07" data-r="1" aria-hidden="true">
          <div class="tessera__galla" data-galla><div class="tessera__dentro"></div></div>
        </figure>
        <figure class="tessera tessera--foto" data-tessera data-l="0.14" data-r="1.5" data-nome="Park" data-dato="64%">
          <div class="tessera__galla" data-galla><div class="tessera__dentro">
            <img src="viale.webp" width="720" height="480" alt="An avenue of trees in a park, leaves on the path">
          </div></div>
          <figcaption class="tessera__nota"><span>Park</span><b>64%</b></figcaption>
        </figure>
        <figure class="tessera tessera--foto" data-tessera data-l="0.1" data-r="0.8" data-nome="Bus line" data-dato="38%">
          <div class="tessera__galla" data-galla><div class="tessera__dentro">
            <img src="autobus.webp" width="720" height="480" alt="A yellow bus on a city street in falling snow">
          </div></div>
          <figcaption class="tessera__nota"><span>Bus line</span><b>38%</b></figcaption>
        </figure>
        <figure class="tessera tessera--colore tessera--ottanio" data-tessera data-l="0.058" data-r="0.66" aria-hidden="true">
          <div class="tessera__galla" data-galla><div class="tessera__dentro"></div></div>
        </figure>
        <figure class="tessera tessera--foto" data-tessera data-l="0.145" data-r="1.5" data-nome="Market" data-dato="52%">
          <div class="tessera__galla" data-galla><div class="tessera__dentro">
            <img src="mercato.webp" width="720" height="480" alt="Crates of berries and tomatoes at a farmers market">
          </div></div>
          <figcaption class="tessera__nota"><span>Market</span><b>52%</b></figcaption>
        </figure>
        <figure class="tessera tessera--foto" data-tessera data-l="0.105" data-r="1" data-nome="Trails" data-dato="47%">
          <div class="tessera__galla" data-galla><div class="tessera__dentro">
            <img src="sentiero.webp" width="720" height="480" alt="A hiker walking a grass path towards the hills">
          </div></div>
          <figcaption class="tessera__nota"><span>Trails</span><b>47%</b></figcaption>
        </figure>
        <figure class="tessera tessera--colore tessera--salvia" data-tessera data-l="0.088" data-r="1.45" aria-hidden="true">
          <div class="tessera__galla" data-galla><div class="tessera__dentro"></div></div>
        </figure>
        <figure class="tessera tessera--foto" data-tessera data-l="0.14" data-r="1.78" data-nome="Book swap" data-dato="29%">
          <div class="tessera__galla" data-galla><div class="tessera__dentro">
            <img src="scaffale.webp" width="720" height="405" alt="Two people smiling through a gap in a bookshelf">
          </div></div>
          <figcaption class="tessera__nota"><span>Book swap</span><b>29%</b></figcaption>
        </figure>
        <figure class="tessera tessera--foto" data-tessera data-l="0.12" data-r="1.33" data-nome="Main Street" data-dato="58%">
          <div class="tessera__galla" data-galla><div class="tessera__dentro">
            <img src="strada.webp" width="720" height="479" alt="A busy main street with a red bus and people crossing">
          </div></div>
          <figcaption class="tessera__nota"><span>Main Street</span><b>58%</b></figcaption>
        </figure>
        <figure class="tessera tessera--colore tessera--argilla" data-tessera data-l="0.066" data-r="1" aria-hidden="true">
          <div class="tessera__galla" data-galla><div class="tessera__dentro"></div></div>
        </figure>
        <figure class="tessera tessera--foto" data-tessera data-l="0.13" data-r="1.5" data-nome="Riverside" data-dato="44%">
          <div class="tessera__galla" data-galla><div class="tessera__dentro">
            <img src="panchina.webp" width="720" height="473" alt="A woman reading on a red bench between the trees">
          </div></div>
          <figcaption class="tessera__nota"><span>Riverside</span><b>44%</b></figcaption>
        </figure>
      </div>

      <div class="centro">
        <div class="voce" data-voce="domanda">
          <p class="occhiello" data-occhiello>The question</p>
          <p class="voce__titolo" data-parole>What does an <em>open door</em> look like?</p>
        </div>
        <div class="voce" data-voce="risposta" aria-hidden="true">
          <p class="occhiello" data-occhiello>What we heard</p>
          <p class="voce__titolo" data-parole>For <em>seven in ten,</em> one is a short walk away.</p>
        </div>
      </div>
    </div>
  </section>

  <section class="chiusura" data-chiusura>
    <p class="chiusura__frase" data-entra>Libraries came first, then parks and Main Street. The bus came last.</p>
    <a class="pillola" href="#" data-pillola data-entra>
      <span class="pillola__fondo" aria-hidden="true"></span>
      <span class="pillola__testo" aria-hidden="true"><span class="pillola__riga">Read the survey</span><span class="pillola__riga">Read the survey</span></span>
      <span class="sr">Read the survey</span>
      <svg class="pillola__freccia" viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h9.5M8.5 4l4 4-4 4" /></svg>
    </a>
    <p class="chiusura__nota" data-entra>4,210 people in 38 towns of under 20,000, March to April 2026.</p>
  </section>

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

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

56 values to change

Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI

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 “Photo ring” 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

A short page by the Larkfield Foundation, a made-up foundation, for its Open Doors Survey: at the top the little house mark and the name of the survey, then the opening on light paper with the Newsreader headline «Where do small towns open up?», a line about the 4,210 people in 38 small towns and a black hairline that grows as you scroll. Then the stage pins for three screens. A thin orbit draws itself around the middle; on it, one by one, twelve tiles bloom: eight real photos (a library reading room, an autumn avenue, a bus in the snow, the crates of a market, a trail, a bookshelf between two smiles, a street with a red bus, a red bench) and four ochre, teal, sage and clay squares with grain. Each tile grows from nothing a little further back along the ring and slides into its place; meanwhile the ring turns half a circle and every tile turns the other way, so the photos stay upright. In the middle the question «What does an open door look like?» rises word by word out of a mask; when the turn is done the paper warms to yellow, the question leaves and the answer arrives, «For seven in ten, one is a short walk away.». Scrolling on, the tiles fly out to twice the radius, growing and fading, and the orbit widens and goes out. Each tile floats a couple of pixels on its own; over a photo the photo lifts, sharpens and a black label springs out below with the place and its share in a lime pill. At the bottom a line, the Read the survey pill with its rolling label and sliding arrow, and the note on the sample.

How it works

A ring measured on the short side

The radius is 0.42 times the short side of the stage, and the tiles are a share of the short side too (from 0.058 to 0.15, with their proportion in data-r): so the ring always fits the screen, even on a phone turned sideways. The angles start at the top and are 2π / n apart, nudged by a fixed number taken from a sine, as the site does, so they look placed by hand and stay the same on every visit.

One timeline driven by the scroll

A ScrollTrigger pins the stage from center center for 300% of the screen, with scrub 0.1, and drives a paused timeline. Each tile goes from scale 0, 0.3 radians further back along the ring, to its place in 1 second with power2.out, half a second after the one before; the positions are functions of the radius and invalidateOnRefresh recomputes them when the window changes.

Half a turn with the photos upright

At the same time the ring container turns from 0 to 180 degrees and every tile from 0 to −180, both with power1.out over 0.5 n + 1 seconds: the two turns cancel out on the tiles, which go round staying upright.

The yellow paper and the answer

Every frame reads the rotation of the ring: at 180 degrees the body takes the yellow class (a half second transition) and in the middle the question fades out while the answer comes in with masked words, from yPercent 100 and 5 degrees off the bottom left, 0.025 seconds apart, in 0.75 seconds with back.out(1.7). Going back does the opposite.

The flight out

After a pause the tiles go to twice the radius along their angle, grow to 1.4 and fade, in 2 seconds with power2.in, and the orbit widens and goes out. The stage has overflow: clip, so nothing ever sticks out at the sides.

The details

Each tile has three layers: the outer one is moved by the timeline, the middle one floats 2.5 pixels on its own beat, the inner one answers the pointer in CSS (it lifts 3 pixels, grows to 1.05, the photo sharpens and the label springs out). The photos have soft three-level shadows and a thread of light on the edge; the colour squares have grain.

Values to change

NameFileDefaultWhat it changes
RADIUSscript.js0.42The radius of the ring, as a share of the short side of the screen (the site uses 0.42).
PIN_LENGTHscript.js300How long the stage stays pinned, in percent of the screen height (the site uses 300).
SCRUBscript.js0.1The seconds the ring takes to catch up with the scroll (the site uses 0.1).
TURNscript.js180The degrees the ring turns while the tiles stay upright (the site uses 180).
BLOOM_FROMscript.js0.3How far back along the ring a tile starts, in radians, before it blooms into place (the site uses 0.3).
STAGGERscript.js0.5The gap between one tile blooming and the next, in timeline seconds (the site uses 0.5).
FLY_OUTscript.js2How far the tiles fly at the end, as a multiple of the radius (the site uses 2).
FLY_SCALEscript.js1.4How big the tiles grow while they fly out (the site uses 1.4).
DRIFTscript.js2.5The pixels each tile floats up and down on its own.
SMOOTHscript.js1.2The seconds of the smooth scroll (the site uses 1.2; 0 turns it off).

Try them in the Playground

When to use it

For the page of a report, a survey, a foundation or a community project: a moment halfway through the read that gathers many photos in one gesture and bridges a question and its answer.

On phones

On a phone the ring is measured on the short side, so on the width, and stays all on screen; the tiles are smaller but in the same proportion, and the question and the answer sit in the empty middle. Scrolling with a finger drives everything with the same numbers; the photo labels stay on pointer hover, so only on a computer.

With reduced motion

The ring is already in place, still and upright, with the orbit drawn and the question in the middle; no pin, no turn, no flight, the scroll is not smoothed and the tiles do not float.

Pitfalls

  • The photos stay upright only if every tile turns against the ring with the same duration and the same ease: with two different eases they are crooked halfway through.
  • The timeline moves the tile’s transform, the floating sits on the middle layer and the pointer hover on the inner one: on the same element GSAP would wipe out the CSS transform.
  • The positions are functions of the radius with invalidateOnRefresh: with fixed numbers, turning the phone would leave the ring at its old size.
  • The flight out takes the tiles off the stage: the stage has overflow: clip, otherwise the page would scroll sideways.
  • No once: true on the timeline with a ScrollTrigger: opening the page already scrolled would freeze everything.

Libraries

GSAP 3.15.0, ScrollTrigger 3.15.0, Lenis 1.3.26, Newsreader (font variabile) 5.3.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 9.3 KB; the libraries: GSAP + ScrollTrigger 45 KB, Lenis 5.3 KB.

Testing

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