Skip to content
animorio
IT
Back to the library

Polaroid wheel

Images, Scroll, TextGSAP, CSS onlyAdvancedCompressed weight: Demo 10 KBGSAP 28 KBFreeDownload the zip

The reference library of Commonplace, a made-up studio: polaroids with photos of the things that inspire it (a record player, old books under a lamp, a film camera, a typewriter at night, a notebook, piano keys) ride on a great wheel whose centre sits below the screen. Wheel, drag, tap and arrow keys: the wheel chases your hand, passes the card by one pixel and settles; with the speed the cards lean and leave a smear. The title above has no motion of its own: its lines slide in their masks exactly as far as the wheel has turned. The moment comes from the library of the Creative Reference Library site; brand, words and code are ours.

Rebuilt from scratch studying crl-2026.webflow.io by Josh Bendall, S•BJ: 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>
<!--
  "Polaroid wheel" 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>Commonplace, a reference library</title>
  <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 reference library of a made-up studio, Commonplace: polaroids of the things that inspire it, laid on a great
       wheel whose centre sits below the screen. Scroll, drag, tap a card or use the arrow keys: the wheel follows with
       a soft lag and snaps on a card, the cards lean and smear with the speed, and the words above have no motion of
       their own, they slide in their masks exactly as far as the wheel has turned -->
  <svg class="defs" width="0" height="0" aria-hidden="true" focusable="false">
    <filter id="mosso" x="-20%" y="-5%" width="140%" height="110%" color-interpolation-filters="sRGB">
      <feGaussianBlur data-blur stdDeviation="0 0"/>
    </filter>
  </svg>

  <main class="stage" data-stage aria-roledescription="carousel" aria-label="Commonplace reference library">
    <div class="glow" aria-hidden="true"></div>
    <div class="dial" data-dial aria-hidden="true"></div>
    <div class="cards" data-cards></div>

    <header class="top">
      <p class="brand"><span class="brand__name">Commonplace</span><span class="brand__line">Reference library</span></p>
      <p class="count"><span class="count__on">Wheel</span><span class="count__n">10 references</span></p>
    </header>

    <section class="words" aria-hidden="true">
      <div class="block block--now" data-block="0">
        <span class="line line--format"><span data-f="format"></span><span data-f="format"></span></span>
        <span class="line line--author"><span data-f="author"></span><span data-f="author"></span></span>
        <span class="line line--title"><span data-f="title"></span><span data-f="title"></span></span>
        <span class="line line--year"><span data-f="year"></span><span data-f="year"></span></span>
      </div>
      <div class="block block--next" data-block="1">
        <span class="line line--format"><span data-f="format"></span><span data-f="format"></span></span>
        <span class="line line--author"><span data-f="author"></span><span data-f="author"></span></span>
        <span class="line line--title"><span data-f="title"></span><span data-f="title"></span></span>
        <span class="line line--year"><span data-f="year"></span><span data-f="year"></span></span>
      </div>
    </section>

    <footer class="foot">
      <p class="hint">Scroll, drag or tap</p>
      <div class="arrows">
        <button class="arrow" type="button" data-prev aria-label="Previous reference">
          <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M12.5 8h-9M7.2 4.2L3.4 8l3.8 3.8"/></svg>
        </button>
        <button class="arrow" type="button" data-next aria-label="Next reference">
          <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8h9M8.8 4.2L12.6 8l-3.8 3.8"/></svg>
        </button>
      </div>
    </footer>

    <span class="measure" data-measure aria-hidden="true"></span>
    <p class="sr" aria-live="polite" data-live></p>
    <div class="grain" aria-hidden="true"></div>
  </main>

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

22 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 “Polaroid wheel” 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 page with a light grain and a warm light in the middle, the reference library of Commonplace: the brand at the top, «10 references» on the right. Twenty polaroids (the ten references twice) sit on a great wheel whose centre is below the screen, one every 18 degrees, each turned 1.2 times its angle, riding on a thin circle with a tick for every place. The card on top is the nearest, the others drop and lean at the sides. Every polaroid has slightly warm paper with its own tooth, a soft layered shadow, the photo with the inner shade of a print and a gloss that slides as the card turns, and a small note at the bottom with the format and the year. Above, large: the format (Record, Book, Film, Essay, Notebook, Playlist), the author and the title, the year on the right; lower down, in grey, the reference that comes next. On opening the wheel makes a whole turn backwards in 3 seconds and every card lights up with a flash of its photo as it passes the top. Then it moves on by itself one card every 2.2 seconds. The mouse wheel, dragging, tapping a card, the two round buttons and the arrow keys drive it: the wheel follows with a soft lag, passes the card by one pixel and comes back, and the arriving card settles with a tiny bump. With speed the cards lean, the shadow drags behind and stretches, the photo leaves a soft copy and a sideways smear. The words have no motion of their own: each line sits in a mask and rises as far as the wheel has turned, the leaving one up and the coming one from below, and where they cross the white paper they turn black.

How it works

One position for everything

The state is a number, the position of the wheel in cards. Every frame the position chases the target with a lerp of 0.08 (corrected for the screen's frame rate with GSAP's deltaRatio), and the cards, the ticked circle and the words all come from that number. Wheel, drag, tap, buttons and keys only change the target.

The wheel

The card in place i has the angle (i minus the position) times 2π/20, brought back between minus and plus half a turn. It sits at x = half the width + R sin(angle) and y = centre - R cos(angle), with the centre of the wheel below the screen, turns 1.2 times the angle and has z-index 100 cos(angle). R is 1.8 times the height, but no more than 1.6 times the width: on a phone the edges of the neighbours still show.

The snap with one pixel more

When the hand stops (the wheel after 0.16 seconds, the drag on release with its push) the target goes to the nearest card plus one pixel of arc in the direction of travel; as soon as the wheel reaches it, the target goes back to the card. Once there, the card drops one pixel and comes back.

Speed: lean, shadow and smear

The speed is the frame's movement times 12.5 (what would be left to the target), capped at 1.2 and damped as on the site (pull += 0.15 (v - pull)). From it come the cards' skewX, the shadow that drags behind and widens, the copy of the photo shifted in screen mode and a sideways-only feGaussianBlur («5 0»), on only when needed.

The lines that follow the wheel

Each line has two spans in a mask: with k the whole part of the position and s the fraction, the first shows reference k moved by -110% times s, the second k+1 moved by 110% times (1 - s). The grey block does the same one further on. The text only changes when k changes, and mix-blend-mode difference turns it black over the paper.

Values to change

NameFileDefaultWhat it changes
RADIUSscript.js1.8The radius of the wheel, in screen heights (the site uses 1.8).
TILTscript.js1.2How much each card turns for its angle on the wheel.
LERPscript.js0.08How quickly the wheel catches up with your hand: lower is softer.
SPIN_TIMEscript.js3Seconds of the whole turn on opening.
AUTO_EVERYscript.js2.2Seconds between two cards when the wheel moves on its own.
BENDscript.js7Degrees the cards lean at full speed.
STREAKscript.js5Pixels of the sideways smear at full speed.
SHADOWscript.js0.55How dark the shadow under each card is.
GRAINscript.js0.07How much grain on the page.

Try them in the Playground

When to use it

For a collection to browse one thing at a time: the reading and records of a personal blog, the references of a studio, a photographer's archive, the projects of a portfolio. The photos turn like real objects and the title always stays readable, because it only moves as far as the wheel.

On phones

The same, with a finger: drag the wheel and tap a card to bring it to the top. The cards are sized on the smaller of 35% of the height and the width, the radius never passes 1.6 times the width so the neighbours stay at the edges, and below 640 px the format and the year go small on the line above the author. Words that are too long shrink by themselves; everything is measured again on resize.

With reduced motion

No turn on opening and no spinning wheel: the cards appear already in place with a fade, and at every change the wheel and the words fade out and come back on the new card.

Pitfalls

  • With only ten cards the step would be 36 degrees and the neighbours would leave the screen: the wheel has twenty places like the site's, with the ten references twice, and the text takes the reference modulo 10.
  • A per-frame lerp never arrives: the snap closes when the wheel is less than a thousandth of a card away and the position is set exact, otherwise the lines stay shifted by a fraction of a pixel.
  • A blur filter always on every card is heavy: there is one feGaussianBlur, its deviation changes every frame and it is put only on the visible cards and only above a speed threshold.

Libraries

GSAP 3.15.0, Inter Tight (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 10 KB; the libraries: GSAP 28 KB.

Testing

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