Skip to content
animorio
IT
Back to the library

Course certificate

Transitions, SVGGSAP, CSS onlyMediumCompressed weight: Demo 13 KBGSAP 28 KBFreeDownload the zip

The final lesson of a made-up online type school, Kernwell, turning into its certificate: Complete course ticks the last task, the progress rolls up to 100%, the pill loads and lands on a tick, then the lesson card grows into the paper-coloured sheet of the certificate. The gold frame and the guilloche rose draw themselves, the name rises letter by letter and takes weight in Fraunces, the course hours roll up, the signature writes itself on its line and the gold foil seal stamps down with a small knock on the paper and a flash of light, while the credential code settles. The certificate leans towards the pointer with a light on the paper; Share copies the link, Download PDF fills its ring and says Saved, the cross folds it back into the lesson.

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>
<!--
  "Course certificate" 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>Kernwell, the certificate that assembles from the last lesson</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/fraunces@5.3.0/full.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="stage" data-stage>
    <!-- the final lesson of a made-up online type school, Kernwell. Complete course ticks the last task, the progress
         rolls to 100%, the pill loads and lands on a tick, then the lesson card grows into the certificate: the frame
         draws, the name takes weight letter by letter, the hours roll, the signature writes itself and the gold foil
         seal stamps down with a sweep of light. The certificate leans to the pointer; Share and Download PDF have
         their own states; the cross folds it back into the lesson -->
    <div class="gruppo" data-gruppo>
      <div class="carta" data-carta>
        <span class="carta__carta" data-foglio aria-hidden="true"></span>

        <section class="lez" data-lez aria-label="Final lesson">
          <header class="lez__testa" data-lv>
            <span class="marca">
              <svg class="marca__segno" viewBox="0 0 22 22" aria-hidden="true">
                <rect x="0.75" y="0.75" width="20.5" height="20.5" rx="6.5"/>
                <path d="M7.6 5.8v10.4M14.6 5.8l-5.4 5.2 5.6 5.2"/>
              </svg>
              <span class="marca__nome">Kernwell</span>
            </span>
            <span class="lez__tag">Final lesson</span>
          </header>
          <p class="lez__corso" data-lv>Variable Type, from Sketch to Specimen</p>
          <h1 class="lez__titolo" data-lv>Publishing your specimen</h1>

          <div class="avanz" data-lv>
            <div class="avanz__riga">
              <span>Course progress</span>
              <span class="avanz__n"><span data-pct>96</span>%</span>
            </div>
            <div class="avanz__barra"><i class="avanz__pieno" data-barra></i></div>
          </div>

          <ul class="compiti">
            <li class="compito is-fatto" data-lv>
              <span class="tondo"><svg viewBox="0 0 20 20" aria-hidden="true"><circle class="tondo__anello" cx="10" cy="10" r="8.25"/><circle class="tondo__pieno" cx="10" cy="10" r="9"/><path class="tondo__spunta" d="M6.2 10.3 8.8 12.8 13.9 7.5"/></svg></span>
              <span class="compito__nome">Export the font files</span>
              <span class="compito__t">6 min</span>
            </li>
            <li class="compito is-fatto" data-lv>
              <span class="tondo"><svg viewBox="0 0 20 20" aria-hidden="true"><circle class="tondo__anello" cx="10" cy="10" r="8.25"/><circle class="tondo__pieno" cx="10" cy="10" r="9"/><path class="tondo__spunta" d="M6.2 10.3 8.8 12.8 13.9 7.5"/></svg></span>
              <span class="compito__nome">Write the specimen page</span>
              <span class="compito__t">14 min</span>
            </li>
            <li class="compito" data-lv data-ultimo>
              <span class="tondo"><svg viewBox="0 0 20 20" aria-hidden="true"><circle class="tondo__anello" cx="10" cy="10" r="8.25"/><circle class="tondo__pieno" cx="10" cy="10" r="9"/><path class="tondo__spunta" d="M6.2 10.3 8.8 12.8 13.9 7.5"/></svg></span>
              <span class="compito__nome">Submit for review</span>
              <span class="compito__t">4 min</span>
            </li>
          </ul>

          <button class="pill pill--ink pill--larga" type="button" data-completa data-lv>
            <span class="pill__fondo"></span>
            <span class="pill__testo" data-completa-testo>Complete course</span>
            <svg class="pill__giro" viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="7.5"/></svg>
            <svg class="pill__ok" viewBox="0 0 20 20" aria-hidden="true"><path d="M5.4 10.4 8.6 13.5 14.8 7"/></svg>
          </button>
        </section>

        <section class="cert" data-cert aria-label="Certificate of completion">
          <svg class="cert__cornice" viewBox="0 0 1000 707" aria-hidden="true">
            <rect class="cornice__fuori" data-cornice x="22" y="22" width="956" height="663" rx="6"/>
            <rect class="cornice__dentro" data-cornice x="34" y="34" width="932" height="639" rx="3"/>
          </svg>
          <svg class="cert__rosa" viewBox="-100 -100 200 200" aria-hidden="true" data-rosa></svg>

          <div class="cert__corpo">
            <header class="cert__testa" data-cv>
              <span class="marca marca--cert">
                <svg class="marca__segno" viewBox="0 0 22 22" aria-hidden="true">
                  <rect x="0.75" y="0.75" width="20.5" height="20.5" rx="6.5"/>
                  <path d="M7.6 5.8v10.4M14.6 5.8l-5.4 5.2 5.6 5.2"/>
                </svg>
                <span class="marca__nome">Kernwell School of Type</span>
              </span>
              <span class="cert__id">Credential <span class="cert__codice" data-id>KW-7F3A-2611</span></span>
            </header>

            <p class="cert__kicker" data-kicker>Certificate of completion</p>
            <p class="cert__piccolo" data-cv>This certifies that</p>
            <h2 class="cert__nome" data-nome>Mara Ellison</h2>
            <p class="cert__corso" data-cv>has completed <em>Variable Type, from Sketch to Specimen</em></p>

            <div class="cert__dati" data-cv>
              <span class="dato"><b data-ore>18 h 40 min</b><small>Course time</small></span>
              <span class="dato"><b>12 modules</b><small>Curriculum</small></span>
              <span class="dato"><b>Nov 15, 2026</b><small>Issued</small></span>
            </div>

            <footer class="cert__piede">
              <div class="firma">
                <svg class="firma__segno" viewBox="0 0 160 46" aria-hidden="true">
                  <path data-firma d="M6 33c6-12 13-26 17-25 4 1-5 25-7 31 5-11 10-16 14-15 3 1-2 9 2 9 4 0 7-10 11-10 3 0 0 8 3 8 5 0 8-14 13-14 3 0-2 12 2 12 6 0 9-17 15-21 2-1 3 1 1 6-3 8-6 15-3 15 5 0 10-11 15-12 3 0 2 6 6 6 7 0 18-8 38-12"/>
                  <path data-firma d="M40 20c8 1 15 0 22-2"/>
                </svg>
                <span class="firma__linea" data-linea></span>
                <span class="firma__chi" data-cv>Ilse Varga, Head of Type</span>
              </div>

              <div class="sigillo" data-sigillo>
                <span class="sigillo__solco" data-solco></span>
                <svg class="sigillo__svg" viewBox="0 0 100 100" aria-hidden="true">
                  <defs>
                    <linearGradient id="oro" x1="0" y1="0" x2="1" y2="1">
                      <stop offset="0" stop-color="#f2dc9e"/>
                      <stop offset="0.38" stop-color="#c9a24e"/>
                      <stop offset="0.62" stop-color="#a47b2c"/>
                      <stop offset="1" stop-color="#e3c47a"/>
                    </linearGradient>
                    <linearGradient id="lampo" x1="0" y1="0" x2="1" y2="0">
                      <stop offset="0" stop-color="#fff" stop-opacity="0"/>
                      <stop offset="0.5" stop-color="#fff" stop-opacity="0.85"/>
                      <stop offset="1" stop-color="#fff" stop-opacity="0"/>
                    </linearGradient>
                    <clipPath id="forma"><path data-rosetta-clip/></clipPath>
                    <path id="giro-testo" d="M50 50m-33.5 0a33.5 33.5 0 1 1 67 0a33.5 33.5 0 1 1-67 0"/>
                  </defs>
                  <path class="sigillo__bordo" data-rosetta fill="url(#oro)"/>
                  <circle class="sigillo__anello" cx="50" cy="50" r="40"/>
                  <circle class="sigillo__anello sigillo__anello--fine" cx="50" cy="50" r="27"/>
                  <text class="sigillo__scritta"><textPath href="#giro-testo" startOffset="0">KERNWELL · SCHOOL OF TYPE · VERIFIED · 2026 ·</textPath></text>
                  <text class="sigillo__k" x="50" y="59.5" text-anchor="middle">K</text>
                  <g clip-path="url(#forma)">
                    <rect class="sigillo__lampo" data-lampo x="-60" y="-20" width="40" height="140" fill="url(#lampo)" transform="rotate(18 50 50)"/>
                  </g>
                </svg>
              </div>
            </footer>
          </div>

          <span class="cert__luce" aria-hidden="true"></span>
        </section>
      </div>

      <div class="azioni" data-azioni>
        <button class="pill pill--chiara pill--tondo" type="button" data-chiudi aria-label="Back to the lesson">
          <span class="pill__fondo"></span>
          <svg class="pill__icona" viewBox="0 0 20 20" aria-hidden="true"><path d="M11.8 5.6 7.4 10l4.4 4.4"/></svg>
        </button>
        <button class="pill pill--ink" type="button" data-share>
          <span class="pill__fondo"></span>
          <svg class="pill__icona" viewBox="0 0 20 20" aria-hidden="true"><path d="M10 12.6V3.4M6.4 6.8 10 3.2l3.6 3.6M4.6 10.4v5.2h10.8v-5.2"/></svg>
          <span class="pill__testo" data-share-testo>Share</span>
        </button>
        <button class="pill pill--chiara" type="button" data-pdf>
          <span class="pill__fondo"></span>
          <svg class="pill__icona pill__icona--pdf" viewBox="0 0 20 20" aria-hidden="true"><circle class="pdf__traccia" cx="10" cy="10" r="7"/><circle class="pdf__arco" data-pdf-arco cx="10" cy="10" r="7"/><path class="pdf__freccia" data-pdf-freccia d="M10 6.2v6.6M7.4 10.4 10 13l2.6-2.6"/><path class="pdf__ok" data-pdf-ok d="M6.8 10.2 9 12.3l4.3-4.5"/></svg>
          <span class="pill__testo" data-pdf-testo>Download PDF</span>
        </button>
      </div>
    </div>

    <svg class="cursore" data-cursore viewBox="0 0 24 24" aria-hidden="true"><path d="M5 2.8v16.4l4.2-4 2.8 6.2 2.9-1.3-2.8-6.1h5.9Z"/></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.

48 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 “Course certificate” 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 warm white ground sits the white card of the final lesson of Kernwell, a made-up online type school: at the top the mark, a navy square with a drawn K, and the gold Final lesson pill; below, the course name, Variable Type, from Sketch to Specimen, the title Publishing your specimen, the Course progress bar at 96% and three tasks with their minutes, two already ticked in green and Submit for review still to do; at the bottom the navy Complete course pill. At a tap the pill squashes and swells back, the label narrows and goes and a ring spins in its place; meanwhile the last task fills with green as its tick draws, the percentage rolls up to 100 with a small knock and the bar fills; the ring gives way to a white tick. Then the lesson rows rise and fade and the card widens into the sheet of the certificate, which turns from white to paper colour with its grain. On the sheet the two lines of the gold frame draw themselves, and behind the name a rose of very thin ellipses turns into place; in come the Kernwell School of Type mark and the credential code, Certificate of completion in gold with its letters closing up, This certifies that, then the name Mara Ellison in Fraunces, letter by letter, rising from below and going from thin to full. Next come has completed with the course name in italics, the row of data with the course hours rolling up to 18 h 40 min, 12 modules and the date, the signature line stretching out and the signature writing itself above it, with the name of the signer. At the end the gold foil seal, with its scalloped edge, the lettering around it and the K in the middle, drops in bigger and turned, stamps onto the paper (the sheet gives a pixel and a thin ring spreads around it), a flash of light crosses it and the credential code stops shuffling. The Share and Download PDF pills rise, and the cross at the top. With the pointer the certificate leans, a soft light follows it on the paper and the flash moves on the seal. Share becomes Link copied and back; Download PDF becomes Preparing while its ring fills, then Saved with a tick and back; the cross folds the certificate back into the lesson.

How it works

One box that changes size

The lesson and the certificate are two layers inside the same box, centred with xPercent and yPercent and each at its own fixed width. GSAP animates only the width, height and radius of the box, which has overflow: hidden: as it grows, the lesson fades and the certificate appears already in place, with no text stretched. The shadow belongs to the box itself, so it is not clipped.

The certificate in container units

The certificate has container-type: inline-size and every measure inside (type, margins, seal, signature) is in cqw: it is the same drawing at any width, from the phone box to the big screen. Its width is worked out from the stage, on the height too, and again on resize.

Draw, weigh, stamp

The frame lines, the ellipses of the rose and the signature draw themselves with stroke-dashoffset, with the length read by getTotalLength. Each letter of the name animates fontVariationSettings from wght 200 to the final weight, staggered. The seal drops from bigger down to 0.965 with power3.in, comes back to 1 with back.out, the box gives a pixel and a soft rectangle, clipped to the shape of the seal, crosses it like a flash.

Values to change

NameFileDefaultWhat it changes
MORPHscript.js0.85How many seconds the lesson card takes to become the certificate.
NAME_WEIGHTscript.js560The weight the name on the certificate settles on.
STAMPscript.js1.4How big the seal is before it stamps down (1: it just appears).
SIGN_TIMEscript.js1.1How many seconds the signature takes to write itself.
TILTscript.js5How far the certificate leans towards the pointer, in degrees.
SHEENscript.js1How bright the flash of light on the seal is (0 none).
LOOPscript.js11: a pointer completes the course by itself; 0: only by hand.
--inchiostrostyle.css#1c2a45The navy of the words, the pill and the mark.
--orostyle.css#b08a3eThe gold of the frame, the rose and the kicker.
--cartastyle.css#fbf8f0The paper colour of the certificate.

Try them in the Playground

When to use it

For the platform of an online school or course, at the moment a student finishes the last lesson: the reward arrives as a real object, to share or download. It also suits a company academy, a bootcamp or a training course.

On phones

The same animation with adapted measures: the lesson card narrows to the screen width, the certificate is sized on the height too (with the buttons below) and its whole drawing scales together in container units; the lean with the pointer is only there where there is a mouse to hover.

With reduced motion

No motion: the certificate is already assembled, with the seal, the signature and the buttons, and it appears with a fade; the cross and Complete course swap one for the other with a fade, with no leaning.

Pitfalls

  • The filled circle of the tick is an SVG element: GSAP scales it through the transform attribute, and a scale in the CSS would cover it. The starting state is set with gsap.set, never in the stylesheet.
  • The certificate measured in cqw needs an explicit width: with container-type: inline-size an absolutely positioned element without a width shrinks to zero.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0, Fraunces (font variabile) 5.3.0.

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

Testing

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