Skip to content
animorio
IT
Back to the library

Onboarding ring transition

TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 9.7 KBGSAP 28 KBFreeDownload the zip

The transition between the three onboarding screens of a focus app, inside a phone on a dark page, like a Dribbble shot. One element alone travels from screen to screen: the ring of light. On the first it is the 25 minute timer with a comet turning along its edge, on the second it flies into the week card and becomes the small ring beside today's total while the bars grow, on the third it comes down to the bottom and opens into the Start button, a light pill with the same light running around it. At every step the light of the screen changes colour and the page around the phone glows with it.

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>
<!--
  "Onboarding ring transition" 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>The onboarding transition with the ring that crosses the screens</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="stage" data-stage>
    <!-- the onboarding of Stillwork, an invented focus timer: three screens inside a phone. One element is shared by
         all three: the ring of light. On the first screen it is the timer, on the second it flies into the week card
         as a small ring, on the third it lands at the bottom and opens into the Start button -->
    <span class="glow glow--a" aria-hidden="true"></span>
    <span class="glow glow--b" aria-hidden="true"></span>

    <div class="phone" data-phone>
      <div class="screen" data-screen>
        <div class="aurora" aria-hidden="true">
          <span class="aurora__blob aurora__blob--a" data-blob-a></span>
          <span class="aurora__blob aurora__blob--b" data-blob-b></span>
        </div>
        <span class="grain" aria-hidden="true"></span>

        <div class="status" aria-hidden="true">
          <span class="status__time">9:41</span>
          <span class="status__island"></span>
          <svg class="status__icons" viewBox="0 0 40 12">
            <path d="M2 10V8.6M5.4 10V7M8.8 10V5.2M12.2 10V3.4" />
            <rect x="21" y="2" width="15" height="8" rx="2.4" />
            <rect class="status__charge" x="22.6" y="3.6" width="10.4" height="4.8" rx="1.2" />
            <path d="M37.6 5v2" />
          </svg>
        </div>

        <header class="top">
          <span class="top__brand">
            <svg class="top__mark" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="5.6" /><path d="M8 4.6V8l2.2 1.4" /></svg>
            Stillwork
          </span>
          <button class="top__skip" type="button" data-skip>Skip</button>
        </header>

        <div class="steps" aria-hidden="true">
          <span class="steps__seg"><i data-seg></i></span>
          <span class="steps__seg"><i data-seg></i></span>
          <span class="steps__seg"><i data-seg></i></span>
        </div>

        <!-- where the ring sits on each screen -->
        <span class="slot slot--hero" data-slot aria-hidden="true"></span>
        <span class="slot slot--mini" data-slot aria-hidden="true"></span>
        <span class="slot slot--cta" data-slot aria-hidden="true"></span>

        <!-- the second screen: the week -->
        <section class="panel panel--week" data-panel="1" aria-hidden="true">
          <div class="week__head" data-in>
            <span class="week__ringspace"></span>
            <span class="week__nums">
              <span class="week__label">Today</span>
              <span class="week__total" data-total>3h 40m</span>
            </span>
            <span class="week__chip">+18%</span>
          </div>
          <div class="week__chart" data-in>
            <span class="week__grid"></span>
            <span class="week__bar" data-bar style="--v:.46"><b>M</b></span>
            <span class="week__bar" data-bar style="--v:.74"><b>T</b></span>
            <span class="week__bar" data-bar style="--v:.6"><b>W</b></span>
            <span class="week__bar" data-bar style="--v:.92"><b>T</b></span>
            <span class="week__bar" data-bar style="--v:.68"><b>F</b></span>
            <span class="week__bar" data-bar style="--v:.22"><b>S</b></span>
            <span class="week__bar week__bar--today" data-bar style="--v:.81"><b>S</b></span>
          </div>
        </section>

        <!-- the third screen: the first block -->
        <section class="panel panel--block" data-panel="2" aria-hidden="true">
          <p class="block__title" data-in>Your first block</p>
          <div class="block__row" data-in><span>Task</span><strong>Draft the Q3 plan</strong></div>
          <div class="block__row" data-in><span>Length</span><strong>25 min</strong></div>
          <div class="block__row" data-in>
            <span>Silence the phone</span>
            <span class="toggle" data-toggle><span class="toggle__knob" data-knob></span></span>
          </div>
        </section>

        <div class="copy">
          <div class="copy__item" data-copy>
            <h2>Focus in calm, short blocks.</h2>
            <p>One timer, one task, and nothing else on the screen.</p>
          </div>
          <div class="copy__item" data-copy>
            <h2>See where your hours went.</h2>
            <p>A quiet weekly view, without streaks or noise.</p>
          </div>
          <div class="copy__item" data-copy>
            <h2>Your first block is ready.</h2>
            <p>Twenty-five minutes of deep work. Your phone goes quiet.</p>
          </div>
        </div>

        <button class="next" type="button" data-next>
          <span class="next__face">
            Continue
            <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h9.4M8.8 4.2L12.6 8l-3.8 3.8" /></svg>
          </span>
        </button>

        <!-- the shared element: the ring of light -->
        <button class="orb" type="button" data-orb aria-label="Start focusing" tabindex="-1">
          <span class="orb__aura" data-aura></span>
          <span class="orb__halo"></span>
          <span class="orb__face" data-face></span>
          <span class="orb__fill" data-fill></span>
          <span class="orb__beam"></span>
          <span class="orb__timer" data-timer>
            <span class="orb__time" data-time>25:00</span>
            <span class="orb__sub">Deep work</span>
          </span>
          <span class="orb__label" data-label>
            <span class="orb__words" data-start>Start focusing
              <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h9.4M8.8 4.2L12.6 8l-3.8 3.8" /></svg>
            </span>
            <span class="orb__words orb__words--done" data-done>Block started
              <svg viewBox="0 0 16 16" aria-hidden="true"><path data-check pathLength="1" d="M3.4 8.4l3 3 6.2-6.6" /></svg>
            </span>
          </span>
        </button>

        <span class="home-bar" aria-hidden="true"></span>
      </div>
      <span class="sheen" data-sheen aria-hidden="true"></span>
    </div>
    <p class="sr" aria-live="polite" data-live></p>
  </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.

49 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 “Onboarding ring transition” 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 near black page a dark phone rises, its edge catching the light at the top and a reflection on the glass. Inside is the onboarding of Stillwork, an app for focusing in blocks: at the top the time, the dynamic island, the wordmark, Skip and three thin lines that say how far along you are; the current one slowly fills. On the first screen, in the middle, there is a big ring of dark glass with 25:00 and Deep work: a comet of violet light with a white core turns along its edge, and the time starts going down second by second. Below, the title Focus in calm, short blocks. and the Continue button. On the next step the title rises and blurs, and the ring flies up to the left, shrinking on a spring that passes the mark: it lands inside a frosted glass card, beside Today and the total that counts up to 3h 40m, while the seven bars of the week grow one after the other and the light of the screen turns sea green. On the third step the card leaves and another comes in with the first block (the task, 25 minutes, the toggle snapping on), and the ring comes down to the bottom and opens where Continue was into a light pill, Start focusing, with the same comet running around it, now amber. Pressed, the pill gives under the finger and comes back on an elastic, the label turns into Block started with a checkmark that draws itself, and then it closes back into the timer ring: the loop starts again. With the pointer the reflection on the glass follows it, and Continue, Skip and the Start button can really be pressed.

How it works

The screen measures itself

The phone's screen is a container with container-type: size, and everything inside is in cqw and cqh: the phone shrinks to fit a short box and the content follows it without a single media query.

Three places for one element

Three invisible placeholders say where the ring sits on each screen: big in the middle, small in the card, wide at the bottom like the button. The script reads offsetLeft, offsetTop and the sizes (which ignore transforms) and takes the ring there with left, top, width and height.

Position on a curve, size on a spring

The position travels on expo.inOut, the size on a slightly longer back.inOut: the ring leaves firmly and, arriving, passes its size by a breath and settles. The content (the time, the button's label) fades out and back in at the right moments of the flight.

The comet on the edge

The light is a conic-gradient whose angle is a CSS variable GSAP turns forever, clipped to the edge alone with a content-box mask in exclusion. A thicker, blurred copy makes the glow. It works the same on the circle and on the pill.

The light that changes colour

The accent colour is a variable on the stage: GSAP takes it from violet to sea green to amber at every step, and with it change the screen's two patches of light (which drift), the ring's aura, the comet and the glow on the page around the phone.

Values to change

NameFileDefaultWhat it changes
HOLDscript.js3.2How many seconds each screen stays before it moves on by itself.
MOVEscript.js0.95How many seconds the ring takes to fly from one screen to the next.
BOUNCEscript.js0.9How far the ring passes its size when it lands; 0 = not at all.
SPINscript.js3.2The seconds of one turn of the light along the ring.
GLOWscript.js1How strong the light of the ring and of the screen is.
AUTOPLAYscript.jstrueMoves through the screens by itself.
LOOPscript.jstrueStarts again once the first block has begun.

Try them in the Playground

When to use it

For the onboarding or first run of a mobile app (productivity, wellbeing, finance, a dashboard with stats), or for an app's landing page that wants to show its three main screens telling them as a single passage.

On phones

The same animation with adapted sizes: the phone is as tall as the box allows and never wider than it, and everything inside is measured on the phone's screen, so it shrinks with it. A finger can tap Continue, Skip and Start.

With reduced motion

No flights and no springs: at every step the ring fades out and reappears already in its place, the texts and cards change with a fade, the comet stays still on the edge and the timer does not count down. The light of the screen still changes colour, slowly.

Pitfalls

  • The placeholders are read with offsetLeft and offsetTop, not getBoundingClientRect: the viewer may shrink the demo with a transform, and sizes read that way would already be scaled.
  • If the window changes size in the middle of a flight, the tween has already written the old numbers: the ring goes back to its place as soon as the passage ends, not halfway.
  • The mask that clips the edge needs both -webkit-mask-composite: xor and mask-composite: exclude, otherwise in Safari the comet fills the whole circle.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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