Skip to content
animorio
IT
All components

Profile completion card

Cards, Hover, SVGGSAP, CSS onlyMediumCompressed weight: Demo 7.5 KBGSAP 28 KBFreeDownload the zip

The profile card of a made-up team app, on white, in the style of real product interface pieces: the avatar inside a thin ring, the name, the role and four steps to do in pills. Every finished step fills in the profile itself: the avatar appears, the bio rises word by word where the empty lines were, the verified badge lands next to the name, the calendar line arrives below. Meanwhile the pill ticks itself and leaves, the others slide into its place, the ring advances on a spring and the percentage rolls from 40 to 100. Once the profile is complete a thread of light runs round the ring just once and the button appears. A premium minimal piece, with a single indigo accent.

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>
<!--
  "Profile completion card" 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>Profile completion card</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">
    <!-- the profile card of a made-up team app: every step you finish fills in the profile itself,
         the ring around the avatar closes and the percentage rolls up to 100 -->
    <article class="card" data-card aria-label="Profile completion">
      <header class="card__top">
        <span class="kicker"><span class="roll" data-roll="kicker"><span class="roll__line">Complete your profile</span></span></span>
        <span class="pct" aria-live="polite"><span class="roll" data-roll="pct"><span class="roll__line">40</span></span><span class="pct__sign">%</span></span>
      </header>

      <div class="who">
        <div class="ava" data-ava>
          <svg class="ring" viewBox="0 0 100 100" aria-hidden="true">
            <circle class="ring__track" cx="50" cy="50" r="46" />
            <circle class="ring__fill" data-ring cx="50" cy="50" r="46" pathLength="1" transform="rotate(-90 50 50)" />
            <circle class="ring__glint" data-glint cx="50" cy="50" r="46" pathLength="1" transform="rotate(-90 50 50)" />
          </svg>
          <span class="ava__face">
            <span class="ava__ini" data-ini>NV</span>
            <span class="ava__pic" data-pic aria-hidden="true">
              <svg viewBox="0 0 64 64">
                <defs>
                  <linearGradient id="g1" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#ffd9c2"/><stop offset="1" stop-color="#f08a5d"/></linearGradient>
                </defs>
                <rect width="64" height="64" fill="url(#g1)"/>
                <circle cx="40" cy="24" r="13" fill="#fff6ef" opacity="0.9"/>
                <path d="M0 46c10-7 20-9 32-5s22 4 32-2v25H0z" fill="#c9562b" opacity="0.55"/>
                <path d="M0 54c12-5 24-5 36-1s20 3 28-1v12H0z" fill="#8f3417" opacity="0.5"/>
              </svg>
            </span>
          </span>
        </div>
        <div class="who__txt">
          <p class="name"><span>Noa Vidal</span>
            <svg class="badge" data-badge viewBox="0 0 20 20" aria-label="Verified">
              <path class="badge__shape" d="M10 1.6l2.2 1.6 2.7-.1.9 2.6 2.2 1.6-.8 2.6.8 2.6-2.2 1.6-.9 2.6-2.7-.1L10 18.4l-2.2-1.6-2.7.1-.9-2.6-2.2-1.6.8-2.6-.8-2.6 2.2-1.6.9-2.6 2.7.1z"/>
              <path class="badge__tick" data-badge-tick d="M6.6 10.2l2.3 2.3 4.6-4.9" pathLength="1"/>
            </svg>
          </p>
          <p class="role">Product designer at Fernway</p>
          <div class="bio" data-bio>
            <span class="skel"></span><span class="skel skel--short"></span>
            <p class="bio__txt" data-bio-txt>Designs calm tools for busy teams. Likes long walks and short meetings.</p>
          </div>
          <p class="cal" data-cal>
            <svg viewBox="0 0 16 16" aria-hidden="true"><rect x="2" y="3" width="12" height="11" rx="2.2"/><path d="M2 6.6h12M5.4 1.6v3M10.6 1.6v3"/></svg>
            <span>Free Mon to Thu, 9 to 5</span>
          </p>
        </div>
      </div>

      <div class="next" data-next>
        <p class="next__label"><span class="roll" data-roll="label"><span class="roll__line">Next steps</span></span></p>
        <ul class="chips" data-chips>
          <li><button class="chip" data-step="pic" data-gain="20" type="button">
            <span class="chip__ic"><svg viewBox="0 0 16 16"><rect x="1.8" y="3.4" width="12.4" height="9.6" rx="2.2"/><circle cx="8" cy="8.2" r="2.4"/><path d="M5.6 3.4l.9-1.6h3l.9 1.6"/></svg>
              <svg class="chip__ok" viewBox="0 0 16 16"><path d="M4 8.4l2.6 2.6L12 5.4" pathLength="1"/></svg></span>
            <span class="chip__l">Pick an avatar</span><span class="chip__g">+20%</span></button></li>
          <li><button class="chip" data-step="bio" data-gain="15" type="button">
            <span class="chip__ic"><svg viewBox="0 0 16 16"><path d="M3 4.4h10M3 8h10M3 11.6h6"/></svg>
              <svg class="chip__ok" viewBox="0 0 16 16"><path d="M4 8.4l2.6 2.6L12 5.4" pathLength="1"/></svg></span>
            <span class="chip__l">Write a bio</span><span class="chip__g">+15%</span></button></li>
          <li><button class="chip" data-step="mail" data-gain="15" type="button">
            <span class="chip__ic"><svg viewBox="0 0 16 16"><rect x="1.8" y="3.4" width="12.4" height="9.4" rx="2"/><path d="M2.4 4.4L8 8.8l5.6-4.4"/></svg>
              <svg class="chip__ok" viewBox="0 0 16 16"><path d="M4 8.4l2.6 2.6L12 5.4" pathLength="1"/></svg></span>
            <span class="chip__l">Verify email</span><span class="chip__g">+15%</span></button></li>
          <li><button class="chip" data-step="cal" data-gain="10" type="button">
            <span class="chip__ic"><svg viewBox="0 0 16 16"><rect x="2" y="3" width="12" height="11" rx="2.2"/><path d="M2 6.6h12M5.4 1.6v3M10.6 1.6v3"/></svg>
              <svg class="chip__ok" viewBox="0 0 16 16"><path d="M4 8.4l2.6 2.6L12 5.4" pathLength="1"/></svg></span>
            <span class="chip__l">Connect calendar</span><span class="chip__g">+10%</span></button></li>
        </ul>
        <div class="done" data-done>
          <button class="cta" data-cta type="button"><span>View your profile</span>
            <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8h9M9 4.5L12.5 8 9 11.5"/></svg></button>
        </div>
      </div>
    </article>
  </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 “Profile completion card” 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 white, a card twenty-six em wide with a thin border and a soft shadow. At the top “Complete your profile” and on the right the percentage, 40%. Below, the avatar with the initials NV inside a thin ring, already 40% full in indigo; beside it the name, Noa Vidal, the role and two empty dashed lines where the bio will go. Further down “Next steps” and four pills: Pick an avatar +20%, Write a bio +15%, Verify email +15%, Connect calendar +10%. Pressing a pill, it squashes and comes back with an elastic, takes an indigo veil, its icon makes way for a tick that draws itself, then it lifts and disappears, and the others slide into its place on a spring. Every step changes the profile: the initials make way for the avatar, which grows with a bounce; the empty lines vanish and the bio rises word by word out of a blur; the verified badge lands next to the name, turning slightly, with its tick drawing itself; the calendar line arrives below. With every step the ring advances on a spring and the percentage climbs, rolling one figure after another. At one hundred percent the line at the top rolls to “Profile complete”, “Next steps” becomes “All set”, a thread of white light runs round the ring just once, the avatar takes a small breath and the black “View your profile” button rises. Pressing it, everything goes back to the start.

How it works

The ring measured to one

The ring is an SVG circle with pathLength="1", rotated by -90 degrees so it starts at noon: dasharray 1 1 and a dashoffset of 1 minus the percentage. GSAP moves the dashoffset with a light back.out, so the ring goes a hair too far and returns; autoRound is off, otherwise the value would round to 0 or 1.

The rolling percentage

The figure sits in a window one line tall with hidden overflow. An object goes from the old value to the new one and at every whole number a new line comes in from below while the old one leaves at the top: the percentage climbs through every number in between.

Every step fills in the profile

Each pill has its own effect: the avatar growing from 0.55 with a bounce, the bio split into words rising out of a 3 pixel blur, the badge arriving from scale 0.2 and -25 degrees, the calendar line. The profile really changes, not just the count.

Pills that make room

When a pill leaves, the others are measured first, then it is taken out of the flow, they are measured again and each one starts from the old position towards the new one on a spring (the FLIP technique): no jumps.

The glint just once

Above the ring there is a second circle with a white dash 6% of the way round: once the profile is complete its dashoffset goes from 0.06 to -0.94 in 1.1 seconds and then disappears. It does not pulse, it does not come back.

Values to change

NameFileDefaultWhat it changes
NAMEscript.jsNoa VidalThe name on the profile; the avatar initials come from it.
STARTscript.js40The percentage the profile starts from; the four steps share the rest.
SPRINGscript.js1.5How much the ring, avatar, badge and pills bounce (0 = no bounce).
RING_TIMEscript.js0.9The seconds the ring takes to advance after each step.
STEP_GAPscript.js1.5In the self-running tour, the seconds between one step and the next.
LOOP_PAUSEscript.js2.6In the self-running tour, the pause on the complete profile before it starts again.
--accentostyle.css#4f46e5The single accent: the ring, the gains, the badge and the calendar.

Try them in the Playground

When to use it

On the profile page or the home of a team app, a social network or a marketplace, in the onboarding after sign-up, in a customer area, or anywhere you want to nudge people to finish a profile by showing straight away what changes.

On phones

Everything is measured in em and the text size depends on both the width and the height of the window: in the phone box the card stays inside, smaller, and the pills wrap. Tap a pill to complete the step.

With reduced motion

No movement or springs: the pills fade away, the avatar, bio, badge and calendar fade in, the ring fills straight away and the percentage changes without rolling; no glint.

Pitfalls

  • With a pathLength="1" path GSAP rounds the dashoffset to 0 or 1 if autoRound is on: that is why it is off at the top of the script, with the empty plugin that avoids the warning.
  • The rolling percentage calls the window on every frame: a new line is added only when the whole number really changes, otherwise lines pile up.
  • Pills that disappear leave the flex gap behind: they are taken out of the flow with display none and the others reach their place with FLIP, not by animating the width.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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