Skip to content
animorio
IT
All components

Metal award badge

Tags, SVG, HoverGSAP, CSS onlyMediumCompressed weight: Demo 8.5 KBGSAP 28 KBFreeDownload the zip

A premium component in the style of Dribbble shots: the ‘Site of the Day’ badge of an invented design award, to pin in the corner of a site. A plate of dark brushed metal with a champagne edge, a laurel wreath drawn in thin lines around a small trophy, its leaves lighting up gold one after the other, a light running over the metal and the title and following the pointer. Tapped, the badge gives on a spring and opens on the jury's votes: the bars fill, the figures roll up and the score lands.

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>
<!--
  "Metal award 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>The award badge with the laurel wreath</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">
    <span class="stage__light" aria-hidden="true"></span>
    <span class="stage__grain" aria-hidden="true"></span>
    <!-- the Site of the Day badge of an invented design award, the kind a studio pins in the corner of its site. A plate
         of dark brushed metal with a champagne edge: on the left a laurel wreath drawn with thin lines around a small
         trophy, whose leaves light up one by one; on the right the award and the date. A light runs over the metal and
         follows the pointer; pressed, the plate gives, opens and shows the jury's votes with the bars filling and the
         figures rolling up to the final score -->
    <div class="aw" data-wrap>
      <span class="aw__halo" data-halo aria-hidden="true"></span>
      <div class="aw__plate" data-plate>
        <span class="aw__metal" aria-hidden="true"></span>
        <span class="aw__spot" data-spot aria-hidden="true"></span>
        <span class="aw__sheen" aria-hidden="true"><span class="aw__sheen-band" data-sheen></span></span>
        <span class="aw__rim" data-rim aria-hidden="true"></span>

        <button class="aw__head" type="button" data-head aria-expanded="false" aria-controls="aw-votes">
          <svg class="aw__wreath" viewBox="0 0 56 56" aria-hidden="true">
            <defs>
              <linearGradient id="aw-gold" x1="0" y1="0" x2="0" y2="1">
                <stop offset="0" stop-color="var(--gold-hi)"/>
                <stop offset="1" stop-color="var(--gold)"/>
              </linearGradient>
            </defs>
            <g data-branch="left"></g>
            <g data-branch="right" transform="translate(56 0) scale(-1 1)"></g>
            <g class="aw__cup" data-cup>
              <path pathLength="1" d="M22.4 18.6h11.2v4.3a5.6 5.6 0 0 1-11.2 0z"/>
              <path pathLength="1" d="M22.4 20.2h-1.7a2.3 2.3 0 0 0 2.2 3.9"/>
              <path pathLength="1" d="M33.6 20.2h1.7a2.3 2.3 0 0 1-2.2 3.9"/>
              <path pathLength="1" d="M28 28.5v3.6"/>
              <path pathLength="1" d="M24.6 35.2h6.8M25.6 32.6h4.8"/>
            </g>
            <path class="aw__star" data-star d="M28 10.4l.9 1.9 2 .3-1.5 1.4.4 2-1.8-1-1.8 1 .4-2-1.5-1.4 2-.3z"/>
          </svg>
          <span class="aw__text">
            <span class="aw__kicker" data-line>Corvel Awards</span>
            <span class="aw__title" data-line data-title>Site of the Day</span>
            <span class="aw__date" data-line>Nov 2, 2026</span>
          </span>
          <svg class="aw__chev" data-chev viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 6.5L8 10l3.5-3.5"/></svg>
        </button>

        <div class="aw__panel" id="aw-votes" data-panel role="region" aria-label="Jury votes">
          <span class="aw__panel-rule" aria-hidden="true"></span>
          <ul class="aw__votes">
            <li class="aw__vote" data-vote="8.62"><span class="aw__vote-name">Design</span><span class="aw__bar"><span class="aw__fill" data-fill></span></span><span class="aw__num" data-num>8.62</span></li>
            <li class="aw__vote" data-vote="8.10"><span class="aw__vote-name">Usability</span><span class="aw__bar"><span class="aw__fill" data-fill></span></span><span class="aw__num" data-num>8.10</span></li>
            <li class="aw__vote" data-vote="8.94"><span class="aw__vote-name">Creativity</span><span class="aw__bar"><span class="aw__fill" data-fill></span></span><span class="aw__num" data-num>8.94</span></li>
            <li class="aw__vote" data-vote="8.05"><span class="aw__vote-name">Content</span><span class="aw__bar"><span class="aw__fill" data-fill></span></span><span class="aw__num" data-num>8.05</span></li>
          </ul>
          <div class="aw__score" data-score-row>
            <span class="aw__score-label">Score<span class="aw__jury">Jury of 24</span></span>
            <span class="aw__score-num"><span data-score>8.43</span><span class="aw__of">/10</span></span>
          </div>
        </div>
      </div>
    </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.

31 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 “Metal award 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 near black page, with a soft warm light in the middle and a fine grain, a wide low plate of brushed graphite rises, with round corners, a thread of light on its top edge and a layered shadow. On the left a laurel wreath draws itself in thin lines: first the two branches, then the leaves from the bottom up to the tips, opening with a small bounce, then the trophy in the middle; the leaves light up gold one after the other like a wave and a small star pops up over the trophy with a turn. On the right ‘Corvel Awards’, ‘Site of the Day’ and the date rise. A band of light crosses the metal diagonally and lights the letters of the title as it passes. Then the badge is pressed: it gives by a breath and comes back on a spring, the chevron turns, the plate opens and shows the jury's votes, Design, Usability, Creativity and Content, with the gold bars filling one after another, the figures rolling up to the vote and at the bottom the score 8.43 out of 10 landing with a small knock; meanwhile the wreath lights up again. After a few seconds it closes and the loop starts again. With the pointer the light follows it over the metal, a soft glow sits under it and the champagne rim lights up only near the tip.

How it works

A wreath built by the code

The two branches are the same SVG group, the second mirrored with scale(-1 1). The script draws a circular arc for the stem and places the leaves along it: at each angle the tangent is the angle plus 90 degrees, the outer leaf leans 38 degrees outward, the inner one 34 inward and smaller; towards the tip the leaves get shorter. Each leaf is an almond of two Bézier curves.

Drawing and lighting

Every line has pathLength=1, so stroke-dasharray and stroke-dashoffset are 1 for all of them and GSAP draws them with the same timing. The leaves, sorted from the bottom to the tip, draw themselves and open from the base with back.out; the gold fill is a copy of the leaf with a gradient, which rises to 1 and settles at 0.5 with a stagger, like a wave.

The metal and the light

The metal is three gradients stacked (very thin repeating lines, a slanted reflection, the vertical light and shade) with the inner shadows of the edge. The band of light is a skewed element with mix-blend-mode: screen moved by a number p from -0.4 to 1.45; every frame the same position goes to the title, a text with a clipped gradient, so the letters light up exactly where it passes.

The edge that catches the light

The champagne edge is a 1 pixel ring cut out with mask-composite (exclude) from a radial gradient centred on the pointer, like the spot of light on the metal: the two variables --mx and --my move both. With the pointer the band follows it with gsap.quickTo.

Opening on the votes

The press is a scale to 0.972 and an elastic.out return. The panel goes from height 0 to 'auto' with GSAP, the rows come in staggered, the bars stretch with scaleX to the vote over 10 and the figures count with onUpdate and toFixed(2); the score lands last with a small knock of scale. The box around it is as tall as the open badge, so opening it moves nothing around it.

Values to change

NameFileDefaultWhat it changes
AWARDscript.jsSite of the DayThe award, the big words on the badge.
ISSUERscript.jsCorvel AwardsWho gives it, the small words above.
DATE_TEXTscript.jsNov 2, 2026The date under the award.
LEAVESscript.js6How many leaves each branch of the wreath has (4 to 8).
SHEENscript.js1How bright the band of light over the metal is.
SPRINGscript.js1How springy the press is: 0.4 calm, 2 very bouncy.
HOLDscript.js4.2On its own, how many seconds the votes stay open.
AUTOscript.jstrueThe badge shows itself off until someone touches it.

Try them in the Playground

When to use it

In the corner of a portfolio, a studio's site or a product page that has won a design award: a recognition you notice without it shouting, which shows the votes to anyone curious.

On phones

On the phone the badge is at most 86% of the screen wide and the box shrinks with the height; there is no hover, so the light, the glow and the rim light up under the finger at the touch, which opens and closes the votes.

With reduced motion

Nothing moves: the wreath and the trophy are already drawn and the plate fades in, the band of light does not pass, the votes open and close with a fade with the bars and figures already at their value.

Pitfalls

  • The fill rules (fill: none) on the wreath's paths beat the filled leaf class on specificity: the gold fill and the star need !important.
  • The opening plate grows up and down: the box around it is as tall as the open badge, otherwise the poster and the video framed on the component cut off the votes.
  • GSAP's transform on the band of light wipes out the CSS skew: the slant is given by GSAP together with x.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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