Skip to content
animorio
IT
Back to the library

Orbiting photo cloud

Images, ScrollGSAP, CSS onlyMediumCompressed weight: Demo 7.8 KBGSAP + ScrollTrigger 45 KBLenis 5.3 KBFreeDownload the zip

Scroll inside the preview

The conservation section of Kestrel Plains, a made-up collection of three safari lodges. When the section comes in, six small photos of the savanna (elephant, giraffe, zebras, leopard, hippo, grass at dusk) open from their centre and all leave from the same point, then spread out on an ellipse around the title «Keeping the plains in balance» and keep turning slowly. The ones at the back of the ellipse are smaller and paler, behind the title; the ones at the front bigger, on top and with a softer shadow. With the pointer over them the orbit slows down, the photo stops, grows a touch and shows its caption; the scroll gives a small push. Minimal style. From the «Conservation» section of the home page of the Tengile MalaMala Collection site, Awwwards Site of the Day on 3/10/2026.

Rebuilt from scratch studying tengilemalamala.com by DashDigital Studio, HKLM: 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.

<!doctype html>
<!--
  "Orbiting photo cloud" 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>Kestrel Plains, conservation</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/inter-tight@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- the conservation section of a made-up collection of safari lodges. When the section comes into view six small
       photos open from their centre and spread out from one point on an ellipse around the title, then keep orbiting
       slowly. The photos at the back of the ellipse are smaller and paler, the ones at the front bigger and on top.
       Under the pointer the orbit slows down and that photo stops, grows a touch and shows its caption -->
  <svg width="0" height="0" style="position:absolute" aria-hidden="true">
    <symbol id="freccia" viewBox="0 0 16 16"><path d="M2.5 8h10.4M9 3.8 13.2 8 9 12.2" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/></symbol>
    <symbol id="giu" viewBox="0 0 16 16"><path d="M8 2.5v10.4M3.8 9 8 13.2 12.2 9" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/></symbol>
  </svg>

  <header class="apertura" data-apertura>
    <nav class="barra" aria-label="Kestrel Plains">
      <a class="marchio" href="#">Kestrel Plains</a>
      <span class="barra__voci">
        <a href="#">Camps</a>
        <a href="#">Reserve</a>
        <a href="#">Stay</a>
      </span>
    </nav>
    <div class="apertura__testo">
      <p class="etichetta">Kestrel Plains Reserve</p>
      <h1 class="apertura__titolo"><span class="riga" data-riga>Three quiet camps</span> <span class="riga" data-riga>on open land.</span></h1>
    </div>
    <p class="scendi" aria-hidden="true"><span>Scroll</span><svg class="scendi__freccia" width="14" height="14"><use href="#giu"/></svg></p>
  </header>

  <section class="equilibrio" data-equilibrio aria-labelledby="titolo-equilibrio">
    <div class="nuvola" data-nuvola>
      <svg class="orbita" data-orbita aria-hidden="true"><ellipse data-ellisse pathLength="1"/></svg>

      <div class="centro" data-centro>
        <p class="etichetta etichetta--accento" data-sale>Conservation</p>
        <h2 class="centro__titolo" id="titolo-equilibrio"><span class="riga" data-sale>Keeping the plains</span> <span class="riga" data-sale>in balance</span></h2>
        <p class="centro__frase" data-sale>Every night at our camps keeps rangers on patrol and the old migration routes open.</p>
        <a class="centro__link" href="#" data-sale><span>Our work on the land</span><svg width="14" height="14" aria-hidden="true"><use href="#freccia"/></svg></a>
      </div>

      <figure class="foto" data-foto data-angolo="325" tabindex="0">
        <span class="foto__ombra" aria-hidden="true"></span>
        <span class="foto__quadro" data-quadro>
          <img src="elefante.webp" width="512" height="640" alt="An elephant walking through golden grass" draggable="false" data-img>
          <figcaption class="foto__nota"><span class="foto__nome">Elephant</span><span class="foto__posto">River Fig</span></figcaption>
        </span>
      </figure>
      <figure class="foto" data-foto data-angolo="253" tabindex="0">
        <span class="foto__ombra" aria-hidden="true"></span>
        <span class="foto__quadro" data-quadro>
          <img src="giraffa.webp" width="512" height="640" alt="A giraffe on dry grass under a dark hill" draggable="false" data-img>
          <figcaption class="foto__nota"><span class="foto__nome">Giraffe</span><span class="foto__posto">Thorn Camp</span></figcaption>
        </span>
      </figure>
      <figure class="foto" data-foto data-angolo="220" tabindex="0">
        <span class="foto__ombra" aria-hidden="true"></span>
        <span class="foto__quadro" data-quadro>
          <img src="zebre.webp" width="512" height="640" alt="A zebra and her foal standing in tall grass" draggable="false" data-img>
          <figcaption class="foto__nota"><span class="foto__nome">Zebra</span><span class="foto__posto">Sable Ridge</span></figcaption>
        </span>
      </figure>
      <figure class="foto" data-foto data-angolo="140" tabindex="0">
        <span class="foto__ombra" aria-hidden="true"></span>
        <span class="foto__quadro" data-quadro>
          <img src="leopardo.webp" width="512" height="640" alt="A young leopard resting on a branch" draggable="false" data-img>
          <figcaption class="foto__nota"><span class="foto__nome">Leopard</span><span class="foto__posto">Thorn Camp</span></figcaption>
        </span>
      </figure>
      <figure class="foto" data-foto data-angolo="68" tabindex="0">
        <span class="foto__ombra" aria-hidden="true"></span>
        <span class="foto__quadro" data-quadro>
          <img src="ippopotamo.webp" width="512" height="640" alt="A hippo wading out of a river" draggable="false" data-img>
          <figcaption class="foto__nota"><span class="foto__nome">Hippo</span><span class="foto__posto">River Fig</span></figcaption>
        </span>
      </figure>
      <figure class="foto" data-foto data-angolo="35" tabindex="0">
        <span class="foto__ombra" aria-hidden="true"></span>
        <span class="foto__quadro" data-quadro>
          <img src="erba.webp" width="512" height="640" alt="Tall grass against a low red sun" draggable="false" data-img>
          <figcaption class="foto__nota"><span class="foto__nome">Grass at dusk</span><span class="foto__posto">Sable Ridge</span></figcaption>
        </span>
      </figure>
    </div>
  </section>

  <section class="campi" aria-label="The camps">
    <ul class="campi__elenco">
      <li class="campo" data-campo><span class="campo__nome">Thorn Camp</span><span class="campo__riga">Six tents under the acacias</span></li>
      <li class="campo" data-campo><span class="campo__nome">River Fig Lodge</span><span class="campo__riga">Eight rooms above the water</span></li>
      <li class="campo" data-campo><span class="campo__nome">Sable Ridge</span><span class="campo__riga">Four suites on the high ground</span></li>
    </ul>
    <p class="campi__piede" data-campo>Kestrel Plains Reserve</p>
  </section>

  <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.

48 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 “Orbiting photo cloud” 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 page of Kestrel Plains, three made-up safari lodges on a made-up reserve. At the top the opening: the mark in Fraunces, three links and the title «Three quiet camps on open land.». Further down comes the conservation section: in the middle the olive label «Conservation», the thin title «Keeping the plains in balance», a line and a link with an arrow. When the section reaches three quarters of the screen six real photos of the savanna open from their centre, all from the same point to the right of the title, and while they open they spread along the ellipse to their places; meanwhile a hairline draws the ellipse and the text rises. Then the photos turn slowly around the title, each with a slow breath up and down: the ones at the top shrink, grow paler and pass behind the title, the ones at the bottom grow, take their colour and a deeper shadow and pass in front. With the pointer over the photos the orbit slows down; the photo under the pointer stops, grows a touch with a small bounce, the picture inside comes closer and a white tag rises from the bottom with the animal and the camp («Elephant, River Fig»), with a small olive rule growing. Let go, the photo drifts back into its place in the orbit. A fast scroll pushes the orbit forwards, and backwards when going up. Below, the three camps on thin rules.

How it works

Six photos and six angles

The photos all sit in the middle of the section, absolutely positioned, and GSAP moves them with x and y. Each has its own start angle, fixed as on the site: 325, 253, 220, 140, 68 and 35 degrees.

The ellipse from the container

The radii are half the container minus half the photo (here 4% more for the front photos), worked out again by a ResizeObserver: if the window changes, the ellipse changes with it, even halfway through the entrance.

One value for the entrance

A ScrollTrigger (onEnter play, onLeaveBack reset) takes a number from 0 to 1 in 2 s with power3.out. Each photo sits at angle × value + acc: at the start they are all at angle 0, then they spread out. The clip-path is inset((100 − 100 × value)%): closed until halfway, then it opens from the centre, while the picture inside goes from scale 1.28 to 1.

The orbit

On every frame acc grows by 0.002 rad × deltaRatio(60) × value: a turn every 52 seconds or so, the same at 60 or 120 Hz. Here the orbit stops when the section is off screen and the scroll adds a push that fades by itself.

Depth

The sine of the angle gives a number from 0 (top) to 1 (bottom): it sets the scale (from 0.78 to 1.04), the z-index (behind or in front of the title, which sits at 50), the light and colour of the photo (filter) and the shadow, through a CSS variable --d.

The pointer

Over the photos the speed drops to 0.3 with a spring. The photo under the pointer builds up a lag equal to the orbit’s step, so it stays still; when you let it go the lag melts slowly and the photo drifts back into its place. Meanwhile it grows to 1.12 with back.out and the tag rises.

Values to change

NameFileDefaultWhat it changes
SPEEDscript.js0.002Radians per frame at 60 fps (the site uses 0.002, a turn every 52 s or so).
ENTRYscript.js2Seconds the photos take to open and spread (the site uses 2).
ENTER_ATscript.js75Where the top of the section must be to start, in % of the screen from the top (the site uses 100).
DEPTHscript.js0.78Size of a photo at the back of the ellipse (1 = no depth).
FRONTscript.js1.04Size of a photo at the front.
SLOWscript.js0.3Speed of the orbit with the pointer over the photos, from 0 to 1.
LIFTscript.js1.12How much the photo under the pointer grows.
DRIFTscript.js3Pixels each photo drifts up and down.
PUSHscript.js2.5How much a fast scroll pushes the orbit.

Try them in the Playground

When to use it

For a section of a travel, hotel, nature reserve, charity or portfolio site that wants to show a few photos around one important line, without a grid.

On phones

Same photos and same orbit. The photos are 64 px wide or more (min(15vw, 19vh)), the ellipse narrows with its container and turns almost into a circle; the line under the title goes under 420 px. A tap holds a photo and shows its caption, another lets it go.

With reduced motion

No orbit and no movement: the photos fade in already in their places on the ellipse and stay still, the text fades in, the caption fades in without the photo growing.

Pitfalls

  • An orbit with a fixed step per frame runs twice as fast on a 120 Hz screen: the step is multiplied by gsap.ticker.deltaRatio(60), as on the site.
  • The site’s clip-path, inset((100 − 100 × value)%), keeps the photo closed until the value is halfway: with power3.out that’s about half a second, on purpose. An inset over 50% isn’t needed, it stops at 50.
  • The photo held under the pointer can’t be stopped by taking it off the orbit: it would come back with a jump. It builds up a lag equal to the step and then melts it slowly.
  • The site never stops the orbit, even far down the page: here a second ScrollTrigger runs it only while the section is on screen.
  • The front photos are bigger: the radii allow for the largest scale, or at the bottom of the ellipse they leave the section.

Libraries

GSAP 3.15.0, ScrollTrigger 3.15.0, Lenis 1.3.26, Fraunces (font variabile) 5.3.0, Inter Tight (font variabile) 5.3.0.

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

Testing

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