Skip to content
animorio
IT
All components

Verified badge

Tags, Hover, SVGGSAP, CSS onlyMediumCompressed weight: Demo 9.2 KBGSAP 28 KBFreeDownload the zip

The verified badge next to the name of a profile, that of Corvina Bakehouse, a made-up bakery, in a white card from a premium shot. The seal is a rosette with soft points drawn in SVG: grey with a clock while the verification is pending, then a thin ring closes around it, the rosette fills with blue from the middle, turns and settles on a spring, the check draws itself and a metal shine runs over it once. Under the name the status rolls from Verification pending to Verified business. On hover, on tap or with the Tab key a small popover opens saying who verified it and since when, with the line of passed checks filling up.

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>
<!--
  "Verified badge" 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>Verified badge</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 profile header of an invented bakery with its verified badge: a scalloped seal drawn in SVG that goes from
         grey and pending to verified, turning and settling on a spring while the check draws itself and a metal shine
         runs over it once; hovering, focusing or tapping the seal opens a small card that says who verified it and when -->
    <div class="zone" data-zone>
      <div class="card" data-card>
        <span class="card__rim" aria-hidden="true"></span>

        <div class="avatar" aria-hidden="true">
          <svg viewBox="0 0 48 48">
            <path class="loaf" d="M9 31.5c0-8.6 6.7-14.5 15-14.5s15 5.9 15 14.5c0 1.4-1.1 2.5-2.5 2.5h-25A2.5 2.5 0 0 1 9 31.5Z"></path>
            <path class="score" d="M17.2 22.6c1.6 1.4 2.4 3.2 2.6 5.4M23.6 20.6c1.7 1.6 2.6 3.7 2.8 6.3M30 22.2c1.5 1.3 2.3 3 2.5 5"></path>
          </svg>
        </div>

        <div class="who">
          <p class="name">
            <span class="name__txt">Corvina Bakehouse</span>
            <button class="seal" type="button" data-seal aria-describedby="seal-tip" aria-label="Verification status">
              <svg class="seal__svg" viewBox="0 0 40 40" aria-hidden="true">
                <defs>
                  <linearGradient id="seal-paint" x1="8" y1="5" x2="32" y2="36" gradientUnits="userSpaceOnUse">
                    <stop class="st-a1" offset="0"></stop>
                    <stop class="st-a2" offset="0.55"></stop>
                    <stop class="st-a3" offset="1"></stop>
                  </linearGradient>
                  <linearGradient id="seal-grey" x1="8" y1="5" x2="32" y2="36" gradientUnits="userSpaceOnUse">
                    <stop offset="0" stop-color="#e9e9ec"></stop>
                    <stop offset="1" stop-color="#c9cad0"></stop>
                  </linearGradient>
                  <linearGradient id="seal-rim" x1="20" y1="2" x2="20" y2="38" gradientUnits="userSpaceOnUse">
                    <stop offset="0" stop-color="#ffffff" stop-opacity="0.85"></stop>
                    <stop offset="0.45" stop-color="#ffffff" stop-opacity="0.08"></stop>
                    <stop offset="1" stop-color="#000000" stop-opacity="0.16"></stop>
                  </linearGradient>
                  <linearGradient id="seal-shine" x1="0" y1="0" x2="1" y2="0">
                    <stop offset="0" stop-color="#ffffff" stop-opacity="0"></stop>
                    <stop offset="0.42" stop-color="#ffffff" stop-opacity="0.12"></stop>
                    <stop offset="0.5" stop-color="#ffffff" stop-opacity="0.78"></stop>
                    <stop offset="0.58" stop-color="#ffffff" stop-opacity="0.12"></stop>
                    <stop offset="1" stop-color="#ffffff" stop-opacity="0"></stop>
                  </linearGradient>
                  <clipPath id="seal-clip"><path data-ros></path></clipPath>
                  <clipPath id="seal-fill"><circle data-fill-c cx="20" cy="20" r="0"></circle></clipPath>
                </defs>
                <ellipse class="seal__shadow" data-shadow cx="20" cy="36.4" rx="12" ry="2.4"></ellipse>
                <circle class="seal__track" data-track cx="20" cy="20" r="19.2"></circle>
                <circle class="seal__arc" data-arc cx="20" cy="20" r="19.2" pathLength="100" transform="rotate(-90 20 20)"></circle>
                <g data-rosette>
                  <path class="seal__grey" data-ros></path>
                  <g clip-path="url(#seal-fill)"><path class="seal__paint" data-ros></path></g>
                  <path class="seal__rimline" data-ros></path>
                  <g clip-path="url(#seal-clip)">
                    <g transform="rotate(22 20 20)"><rect class="seal__shine" data-shine x="-16" y="-8" width="16" height="56"></rect></g>
                  </g>
                </g>
                <g class="seal__clock" data-clock>
                  <circle cx="20" cy="20" r="7.2"></circle>
                  <path data-hand-m d="M20 20v-4.6"></path>
                  <path data-hand-h d="M20 20h3.1"></path>
                </g>
                <path class="seal__check" data-check pathLength="100" d="M14.2 20.4l4 3.9 7.8-8.4"></path>
              </svg>
              <span class="seal__ring" data-ring aria-hidden="true"></span>
            </button>
          </p>
          <p class="sub">
            <span class="handle">@corvina.bakes</span>
            <span class="sep" aria-hidden="true">·</span>
            <span class="status" data-status><span class="status__w" data-status-w>Verification pending</span></span>
          </p>
          <span class="sr" data-live aria-live="polite"></span>
        </div>
      </div>

      <div class="tip" id="seal-tip" role="tooltip" data-tip>
        <span class="tip__arrow" data-tip-arrow aria-hidden="true"></span>
        <div class="tip__in">
          <p class="tip__head" data-tip-row>
            <svg class="tip__seal" viewBox="0 0 40 40" aria-hidden="true">
              <path class="tip__seal-fill" data-ros></path>
              <path class="tip__seal-check" d="M14.2 20.4l4 3.9 7.8-8.4"></path>
            </svg>
            <span data-tip-title>Verified business</span>
          </p>
          <p class="tip__lead" data-tip-row data-tip-lead>Corvina Bakehouse is a confirmed business on Verity.</p>
          <dl class="tip__facts" data-tip-row>
            <div><dt>Verified by</dt><dd data-tip-by>Verity Trust</dd></div>
            <div><dt data-tip-since-l>Since</dt><dd data-tip-since>March 14, 2024</dd></div>
          </dl>
          <div class="tip__checks" data-tip-row>
            <p class="tip__checks-top"><span>Checks passed</span><span class="tip__count"><span data-count>0</span> of <span data-count-all>3</span></span></p>
            <span class="tip__track"><span class="tip__bar" data-bar></span></span>
            <p class="tip__names" data-tip-names>Identity · Domain · Registry</p>
          </div>
        </div>
      </div>
    </div>

    <svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 19.2 11l-6.3 1.6-3.3 5.9Z"></path></svg>
  </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.

36 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 “Verified badge” 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 white ground there is a single white card with wide corners, its one pixel edge catching the light at the top and a soft layered shadow with a thread of blue. On the left the bakery’s mark, a rounded square the colour of crumb with a scored loaf; on the right the name Corvina Bakehouse, large, and next to it the seal, as tall as the letters. Below, @corvina.bakes and the status. At first the seal is a grey rosette with twelve soft points and a small white clock drawn inside, and the status says Verification pending. The check starts: the status rolls to Verifying, a thin blue ring closes around the rosette while the clock hands turn and the seal holds its breath, shrinking slightly. When the ring is closed the clock disappears, the blue spreads from the middle inside the rosette, which turns 150 degrees and settles on a spring that passes the mark and comes back; the seal squashes, swells and settles by a pixel while the shadow under it narrows and widens, a thin ring opens around it and fades, the white check draws itself and a glossy shine crosses the rosette diagonally, just once. The status rolls to Verified business, in blue. With the pointer over it the rosette leans slightly on an elastic and the shine passes again; a white popover opens below with its little arrow pointing at the seal: Verified business, the line saying the business is confirmed on Verity, Verified by Verity Trust, Since March 14, 2024, and the Checks passed line filling while the number counts to 3 of 3. Pressed, the seal sinks and comes back on an elastic. While pending the popover says Verification pending, Submitted November 2, 2026 and the line stops at 2 of 3, in grey. Until someone touches it the round repeats: pending, check, seal, the drawn pointer opening the popover and pressing, then the blue withdraws, the check rubs out and the clock comes back.

How it works

The rosette from a formula

The seal’s shape is one computed path: a circle whose radius waves LOBES times with a softened cosine (the sign times the absolute value to the power 0.8), sampled at 24 points per tip. The same d goes into the grey rosette, the blue one, the light-catching edge, the shine’s clipPath and the small seal in the popover.

The blue spreading from the middle

The blue rosette (a linearGradient between three tones of the accent) sits over the grey one inside a clipPath with a circle: GSAP takes its r attribute from 0 to 24 and the colour spreads from the middle, while the rosette group turns from -TURN to 0 with an elastic.out and the button runs a series of scales (squash, swell, settle by a pixel).

The check and the shine

The check has pathLength 100 and strokeDasharray 100 102: the strokeDashoffset goes from 101 to 0 (with autoRound off, otherwise it snaps to whole numbers). The shine is a rectangle with a white transparent gradient, rotated 22 degrees in a group and moved in x inside the rosette’s clipPath: the group keeps the rotation, GSAP moves only the rectangle.

The popover attached to the seal

On opening the popover measures itself on the seal: it centres under it but never leaves the card, and the arrow and the transformOrigin go to the exact point of the seal, so the popover grows from there with a back.out. The rows come in staggered and the checks line is a scaleX with a counter counting along.

Values to change

NameFileDefaultWhat it changes
LOBESscript.js12The soft points of the seal’s rosette.
POINTscript.js0.11How deep the points are: 0 a circle, 0.2 a star.
TURNscript.js150The degrees the rosette turns before settling on verified.
SPRINGscript.js1.1The seconds of the spring the rosette settles with.
VERIFY_TIMEscript.js1.5The seconds of the check, with the ring closing around the grey seal.
SHINEscript.js0.85The seconds of the shine running over the seal.
VERIFIERscript.jsVerity TrustWho did the verification, written in the popover.
SINCEscript.jsMarch 14, 2024Since when the business has been verified.
CHECKSscript.js3The passed checks the line counts and fills.
AUTOscript.jstrueThe round on its own: pending, verified, a look at the popover, then pending again.
--accentostyle.css#2563ebThe blue of the verified seal, the status and the line.
--attesastyle.css#a1a3abThe grey of the pending seal in the popover.

Try them in the Playground

When to use it

Next to the name of a profile, a shop or a business in a marketplace, a social network, a list of sellers or hosts, in reviews or in an account header: wherever a mark has to say that whoever is behind it has been checked, and explain by whom and since when to whoever hovers it.

On phones

The card narrows with the screen, the name, the mark and the seal are also sized on the height and the popover always stays within the card’s width, with the arrow following the seal. A tap on the seal does the press and opens the popover, a tap outside closes it.

With reduced motion

No turning, springs, squashing, shine or drawn pointer: the ring closes, the seal turns blue with a fade and the check already in place, the status changes with a fade and the popover fades in and out, with the line already full.

Pitfalls

  • The shine was a rect with transform="rotate(22 20 20)" moved by GSAP: GSAP’s inline transform wipes the attribute’s and the shine ran straight. Now the rotation sits on a group and GSAP moves only the rectangle.
  • stop-color="var(--accento)" as an attribute does not read CSS variables: the three gradient stops have a class and the colour is in the CSS, so changing --accento also changes the seal.
  • The status rolls with two words in the same window: during a fast round three were left on top of each other; going back to pending without animation removes all the old ones and kills their tweens.
  • The popover hanging right under the seal covered the Verified business status and on a phone went out sideways, because the seal sits at the end of the name: now it opens below the card’s edge and shifts to stay within its width, with the arrow and the point it grows from staying under the seal.
  • A button does not inherit the font size: the seal 1.08em wide was 14 pixels tall instead of as tall as the name. It needs font-size: inherit on the button.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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