Skip to content
animorio
IT
All components

Work SSO sign-in

Forms, Hover, TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 8.9 KBGSAP 28 KBFreeDownload the zip

Signing in with the company’s SSO, single sign-on: you type your work email, the domain lights up as soon as it is recognised and the Northwind Labs row springs down below it with «SSO enabled» and its tick. «Continue with SSO» shrinks into a spinning ring while you hop to the provider, a line runs between the app and Keystone ID, then the check draws itself and the pill opens back into «Signed in as Ada Lindqvist». With a domain that has no SSO the field shakes and offers the password. Minimal style, on white, with a single indigo accent; made-up brands, no real logos.

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>
<!--
  "Work SSO sign-in" 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>Work SSO sign-in</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>
  <main class="stage">
    <!-- single sign-on with a work email: type the address, the domain is recognised and the company row slides in,
         Continue with SSO shrinks into a ring while you hop to the identity provider, then the check draws itself
         and the pill opens into the signed-in account. A domain without SSO shakes and offers the password. -->
    <section class="card" data-card aria-label="Sign in">
      <span class="card__light" data-light aria-hidden="true"></span>

      <header class="head">
        <span class="app" aria-hidden="true">
          <svg viewBox="0 0 24 24"><path d="M4 18 12 4l8 14" /><path d="M8.2 11h7.6" /></svg>
        </span>
        <h1 class="head__title"><span class="roll" data-title><span class="roll__line">Sign in to Halyard</span></span></h1>
        <p class="head__sub"><span class="roll" data-sub><span class="roll__line">Use the email you have at work.</span></span></p>
      </header>

      <div class="field" data-field>
        <label class="field__label" for="email">Work email</label>
        <div class="field__box" data-box>
          <svg class="field__icon" viewBox="0 0 20 20" aria-hidden="true"><rect x="2.8" y="4.6" width="14.4" height="10.8" rx="2.2"/><path d="m3.4 6 6.6 5 6.6-5"/></svg>
          <input id="email" class="field__input" data-input type="email" inputmode="email" autocomplete="off" spellcheck="false" placeholder="you@company.com">
          <span class="field__mirror" data-mirror aria-hidden="true"></span>
          <span class="field__caret" data-caret aria-hidden="true"></span>
        </div>
      </div>

      <div class="org" data-org aria-live="polite">
        <div class="org__inner" data-org-inner>
          <span class="org__mark" aria-hidden="true">
            <svg viewBox="0 0 24 24"><path d="M6 18V6l12 12V6" /></svg>
          </span>
          <span class="org__text">
            <span class="org__name" data-org-name>Northwind Labs</span>
            <span class="org__via" data-org-via>via Keystone ID</span>
          </span>
          <span class="org__tag" data-org-tag>
            <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M8 1.8 13 3.6v4c0 3-2.1 5.4-5 6.6-2.9-1.2-5-3.6-5-6.6v-4z"/><path class="org__tick" data-org-tick d="m5.7 8 1.6 1.6 3-3.2" pathLength="1"/></svg>
            <span>SSO enabled</span>
          </span>
        </div>
      </div>

      <div class="nosso" data-nosso aria-live="polite">
        <div class="nosso__inner">
          <p class="nosso__text"><span data-nosso-domain>pebble.io</span> has no single sign-on.</p>
          <button class="nosso__link" type="button" data-password>Use a password instead
            <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8h8.5M8.8 4.6 12.2 8l-3.4 3.4"/></svg>
          </button>
        </div>
      </div>

      <button class="pill" type="button" data-pill disabled>
        <span class="pill__face" data-face>
          <span class="roll pill__roll" data-label><span class="roll__line">Continue with SSO</span></span>
          <svg class="pill__arrow" data-arrow viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8h8.5M8.8 4.6 12.2 8l-3.4 3.4"/></svg>
        </span>
        <svg class="ring" data-ring viewBox="0 0 24 24" aria-hidden="true">
          <circle class="ring__track" cx="12" cy="12" r="9"/>
          <circle class="ring__arc" cx="12" cy="12" r="9" pathLength="1"/>
        </svg>
        <svg class="check" data-check viewBox="0 0 24 24" aria-hidden="true"><path data-check-path d="m7 12.4 3.3 3.3L17.2 8.6" pathLength="1"/></svg>
        <span class="who" data-who aria-hidden="true">
          <span class="who__avatar">AL</span>
          <span class="who__text"><span class="who__label">Signed in as</span><span class="who__name">Ada Lindqvist</span></span>
        </span>
      </button>

      <p class="hop" data-hop aria-hidden="true">
        <span class="hop__badge hop__badge--a">H</span>
        <span class="hop__line"><span data-hop-run></span></span>
        <span class="hop__badge hop__badge--b">K</span>
        <span class="hop__text" data-hop-text>Redirecting to Keystone ID</span>
      </p>
      <p class="sr" aria-live="polite" data-live></p>
    </section>
  </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.

35 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 “Work SSO sign-in” 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 white card with the Halyard mark, «Sign in to Halyard» and the «Work email» field. In the preview sam@pebble.io types itself: «Continue with SSO» lights up, and when pressed the field shakes and «pebble.io has no single sign-on» appears below with «Use a password instead». Then the address is erased and ada@northwind-labs.com comes in: the domain gets an indigo backdrop, the Northwind Labs row «via Keystone ID» drops down with the «SSO enabled» badge and its tick drawing itself, the pill turns indigo. Pressed, it shrinks into a circle with a spinning ring, the title says «Hopping to Keystone ID» and below a line runs between H and K; a couple of seconds later the check draws itself and the pill opens back up in white with the AL avatar and «Signed in as Ada Lindqvist».

How it works

The domain is read as you type

On every letter a regular expression looks for name@domain; if the domain is in the SSO list the company row drops down and the button takes the colour, if it is a valid address without SSO the button just switches on.

The drawn caret

The real caret is transparent: an invisible copy of the text measures where the last letter ends and an indigo bar blinks there in steps. The same measure gives the domain backdrop.

Rows that open

The company row and the error row have zero height: the content is measured and GSAP takes the height there on an elastic spring, with the badge arriving second.

The pill becomes a ring

The width is measured, the label goes, the pill shrinks to its own height (a circle) on a spring; the ring is a whole svg spinning with transformOrigin 50% 50%.

The check and the account

The check has pathLength 1 and draws with strokeDashoffset from 1 to 0 (autoRound off); then the pill goes back to its measured full width and the avatar and the name come in.

Values to change

NameFileDefaultWhat it changes
TYPE_SPEEDscript.js0.055Seconds per letter when the demo types by itself.
WAITscript.js2.2Seconds of the hop to the provider, with the ring spinning.
PRESSscript.js0.97Scale of the pill while pressed.
SPRINGscript.js0.55How springy the company row and the pill are (lower means more bounce).
SHAKEscript.js7Pixels of the field shake when the domain has no SSO.
SPINscript.js0.9Seconds for one turn of the ring.
LIGHTscript.js0.9Strength of the soft light following the pointer (0 turns it off).
AUTO_PAUSEscript.js7Seconds of quiet before the demo plays by itself again.

Try them in the Playground

When to use it

On the sign-in page of a team or business app, a dashboard, a back office: wherever people at a company sign in with their company account instead of a password.

On phones

Everything is in em and the size depends on both the width and the height of the window, so the card fits the phone box. The field opens the email keyboard and a tap works like a click.

With reduced motion

No springs, shakes or spinning rings: the rows open without a bounce, the error just appears, the ring stays still, the labels and the account cross-fade and the preview address appears whole.

Pitfalls

  • The ring spins as a whole svg: transformOrigin 50% 50%, never svgOrigin on the svg itself, or it orbits instead of turning in place.
  • The check and the badge draw with strokeDashoffset: the block turning autoRound off is needed, or they pop in at once.
  • The pill widens back by measuring the full width with the width cleared, then GSAP goes from the circle to that measure and clears the width at the end.
  • In the self-typing demo the word to erase has to be passed to the tween: read while building the timeline, the field is still empty.
  • No real Google, Apple, Microsoft or identity provider logos: the brands are made up.

Libraries

GSAP 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 8.9 KB; the libraries: GSAP 28 KB.

Testing

Tested on 27 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 components