Skip to content
animorio
IT
Back to the library

Mineral dial

Scroll, ImagesGSAP, CSS onlyMediumCompressed weight: Demo 6.9 KBGSAP + ScrollTrigger + CustomEase 49 KBFreeDownload the zip

Scroll inside the preview

The five elements of Alderstone Minerals, a made-up quarry, on an almost black ground: as you scroll, a dial of 120 thin ticks fills all the way round with an orange needle on its edge, the element’s name lights up among the others at .15, symbol and atomic number roll into place and a carousel of real specimens brings the right one to the middle, upright, while the ones arriving and leaving lean 30 degrees. Minimal style. From the minerals section of the CoMinVi site, Awwwards Site of the Day on 30/9/2026.

Rebuilt from scratch studying cominvi.com.mx by Holographik: 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>
<!--
  "Mineral dial" 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>Alderstone Minerals, the dial that fills as you scroll</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/geist-mono@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- Alderstone Minerals, a made-up quarry, shows the five elements it brings out of its seam. The stage stays
       still while you scroll: a thin dial of ticks fills all the way round, the name of the element being shown
       lights up in the list, its symbol and atomic number roll into place, and a carousel of real specimens turns
       the next one to the middle, upright, while the ones arriving and leaving lean 30 degrees -->
  <section class="apertura">
    <p class="marchio">
      <svg class="marchio__segno" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 19 10 6l4 7 2.5-3.5L21 19Z" /><path d="M8.6 14.6h5.2" /></svg>
      Alderstone Minerals
    </p>
    <h1 class="apertura__titolo">Five elements,<br>one seam.</h1>
    <p class="etichetta etichetta--tenue">
      Scroll to survey the seam
      <svg class="giu" viewBox="0 0 12 16" aria-hidden="true"><path d="M6 1v13M1.5 9.5 6 14l4.5-4.5" /></svg>
    </p>
  </section>

  <section class="minerali" data-minerali>
    <div class="palco">
      <header class="testa">
        <p class="marchio marchio--piccolo">
          <svg class="marchio__segno" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 19 10 6l4 7 2.5-3.5L21 19Z" /><path d="M8.6 14.6h5.2" /></svg>
          Alderstone
        </p>
        <p class="etichetta etichetta--tenue">Minerals we extract</p>
      </header>

      <ol class="nomi" data-nomi aria-label="Elements">
        <li class="nome" data-nome>Gold</li>
        <li class="nome" data-nome>Copper</li>
        <li class="nome" data-nome>Iron</li>
        <li class="nome" data-nome>Bismuth</li>
        <li class="nome" data-nome>Silicon</li>
      </ol>

      <div class="centro">
        <div class="quadrante" data-quadrante>
          <svg class="tacche tacche--spente" viewBox="0 0 200 200" aria-hidden="true" data-tacche></svg>
          <svg class="tacche tacche--piene" viewBox="0 0 200 200" aria-hidden="true" data-tacche data-piene></svg>
          <svg class="ago" viewBox="0 0 200 200" aria-hidden="true">
            <g data-ago><path d="M100 1.5V12" /></g>
          </svg>
        </div>

        <div class="giostra" data-giostra>
          <div class="giostra__binario" data-binario>
            <figure class="campione" data-campione>
              <div class="campione__foto" data-foto>
                <img src="oro.webp" alt="A flat nugget of native gold on black" width="1024" height="747" decoding="async">
                <i class="campione__riflesso" data-riflesso aria-hidden="true"></i>
              </div>
            </figure>
            <figure class="campione" data-campione>
              <div class="campione__foto campione__foto--vicino" data-foto>
                <img src="rame.webp" alt="A rough piece of blue-green copper ore" width="1024" height="683" decoding="async">
                <i class="campione__riflesso" data-riflesso aria-hidden="true"></i>
              </div>
            </figure>
            <figure class="campione" data-campione>
              <div class="campione__foto" data-foto>
                <img src="pirite.webp" alt="A cluster of brassy pyrite crystals, iron ore" width="1024" height="666" decoding="async">
                <i class="campione__riflesso" data-riflesso aria-hidden="true"></i>
              </div>
            </figure>
            <figure class="campione" data-campione>
              <div class="campione__foto" data-foto>
                <img src="bismuto.webp" alt="A stepped bismuth crystal with a rainbow oxide skin" width="1024" height="678" decoding="async">
                <i class="campione__riflesso" data-riflesso aria-hidden="true"></i>
              </div>
            </figure>
            <figure class="campione" data-campione>
              <div class="campione__foto" data-foto>
                <img src="quarzo.webp" alt="A cluster of clear quartz points" width="1024" height="768" decoding="async">
                <i class="campione__riflesso" data-riflesso aria-hidden="true"></i>
              </div>
            </figure>
          </div>
        </div>
      </div>

      <aside class="dati" aria-live="polite">
        <div class="dato">
          <span class="etichetta etichetta--tenue">Symbol</span>
          <span class="rullo"><span class="rullo__colonna rullo__colonna--simbolo" data-colonna>
            <span>Au</span><span>Cu</span><span>Fe</span><span>Bi</span><span>Si</span>
          </span></span>
        </div>
        <div class="dato">
          <span class="etichetta etichetta--tenue">Atomic no.</span>
          <span class="rullo"><span class="rullo__colonna" data-colonna>
            <span>79</span><span>29</span><span>26</span><span>83</span><span>14</span>
          </span></span>
        </div>
      </aside>

      <footer class="piede">
        <p class="didascalia">
          <span class="rullo rullo--riga"><span class="rullo__colonna" data-colonna>
            <span>Native gold, Hollin seam, drift 2</span>
            <span>Copper ore, Hollin seam, drift 3</span>
            <span>Pyrite, Hollin seam, drift 3</span>
            <span>Bismuth, smelter crystal, bay 1</span>
            <span>Quartz, Hollin seam, drift 5</span>
          </span></span>
        </p>
        <p class="lettura" aria-hidden="true"><span class="lettura__n"><b data-gradi>0</b>°</span><i class="lettura__riga"></i><span class="lettura__n"><b data-cento>0</b>%</span></p>
      </footer>
    </div>
  </section>

  <section class="coda">
    <p class="etichetta etichetta--tenue">Alderstone Minerals, surveyed since 1961</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/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.

49 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 “Mineral dial” 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

The page of Alderstone Minerals, a made-up quarry, with the five elements it brings out of its seam: gold, copper, iron, bismuth and silicon. The stage stays still while you scroll. In the middle a dial of 120 thin ticks, with a longer tick every 72 degrees, fills clockwise: the ticks dimmed to 16% turn bright behind a conic-gradient mask, and an orange needle runs on the leading edge; below, in monospace, the degrees and the percentage. The scroll is cut in five equal parts, one per element. On the left the five names: the one shown goes to full strength and widens a little on the wdth axis, the others stay at .15. On the right the symbol (in orange) and the atomic number roll on their drums to the right entry, and at the bottom the caption with the quarry drift the specimen comes from rolls too. Inside the dial a carousel of real photos of the specimens moves one place with the site’s steep curve: the one in the middle is upright and full, the ones arriving and leaving lean 30 degrees, a little smaller and dimmer; when the specimen lands in the middle a band of light crosses it and it settles with a breath. Everything works both ways. On a phone the names become a row that centres on the element shown.

How it works

The dial with the conic mask

Two identical rings of ticks, drawn by the script in a 200 by 200 svg: below the dim one, above the bright one with mask-image: conic-gradient(from 0deg, #fff 0deg, #fff var(--angle), transparent var(--angle)), like the site’s circle. On every update --angle = progress * 360deg; the needle is a stroke inside the svg rotating with svgOrigin at the true centre, 100 100.

The softened scroll

The section is 420vh tall and the stage is sticky and 100lvh tall. The site uses ScrollTrigger.create with scrub 1, but onUpdate gets the raw progress; here a tween of an object from 0 to 1 with scrub 1 gives a progress that arrives softly, and the ring, the needle, the degrees and the percentage come from it.

Five equal parts

The active entry is floor(progress * 5), with the progress held just under 1 so the last stays the fifth. Tweens start only when it changes: the names to 1 or .15 in .25 s, the drum columns to yPercent -100 / entries * index in .25 s (in percent, so nothing needs measuring), the carousel in 1.2 s.

The leaning carousel

The track is five places wide, each 20%: moving it by -20 * index in xPercent brings the right specimen to the middle. On the way each specimen rotates by 30 * sign * min(1, |distance|), as on the site, and also scales down to .86 and dims, so the middle reads at once.

The site’s curve and the sheen

The curve is the site’s CustomEase, M0,0 C0.6,0 0,1 1,1: it starts slow, is steep in the middle and lands softly. When the carousel arrives, a band of light in mix-blend-mode screen crosses the specimen in 1.1 s and the specimen settles from 1.018 to 1 with a back.out.

Values to change

NameFileDefaultWhat it changes
SCRUBscript.js1Seconds the dial takes to catch up with the scroll (the site uses 1).
DIMscript.js0.15How visible the names not shown are (the site uses .15).
NAME_TIMEscript.js0.25Seconds a name takes to light up or dim (the site uses .25).
ROLL_TIMEscript.js0.25Seconds the symbol and the number take to roll (the site uses .25).
SLIDE_TIMEscript.js1.2Seconds the carousel takes to move one specimen (the site uses 1.2).
TILTscript.js30Degrees the specimens arriving and leaving lean (the site uses 30).
SIDE_SCALEscript.js0.86How small the specimens at the sides get.
WIDENscript.js104Width (wdth axis) of the name shown; the others stay at 92.
TICKSscript.js120How many ticks round the dial.
SHEENscript.js1.1Seconds the band of light takes to cross the specimen in the middle.

Try them in the Playground

When to use it

For the products, materials or services page of a company, a quarry, a lab, a collection or a stone shop: a few items to present one at a time, with a fixed fact for each, while the visitor scrolls.

On phones

Same dial, same leaning carousel and same drums. The dial is sized on width and height (min(60vw, 46vh)), symbol and number move up beside the brand and the names become a row that slides to centre the element shown, in .3 s as on the site.

With reduced motion

The dial still fills (it is a fill, not a move), but nothing rolls or slides: symbol, number and caption change in place, the carousel changes specimen with a fade and no lean, the name does not widen and the sheen does not pass.

Pitfalls

  • ScrollTrigger.create with scrub gives onUpdate the raw progress, without the smoothing: to make the ring arrive softly you need a tween with a scrollTrigger, even of a plain object.
  • The carousel moves in xPercent and the drums in yPercent: nothing needs measuring in pixels, and they stay right when the demo window changes size.
  • The needle rotates inside the svg with svgOrigin at the viewBox centre (100 100): with transformOrigin on the element it would spin round its own box and leave the dial.
  • The specimens’ rotation sits on the photo frame and the settle on the wrapper: one element per transform, or GSAP overwrites them.

Libraries

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

Compressed with gzip, the three demo files weigh 6.9 KB; the libraries: GSAP + ScrollTrigger + CustomEase 49 KB.

Testing

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