Skip to content
animorio
IT
Back to the library

Term report card

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

The report card of an online school in a card: five subjects with the grade’s bar climbing and the number counting, the average inside an orange ring that closes, and next to it the comment. Moving over a subject the teacher’s note appears; changing term the bars move to the new grades, the average is worked out again and next to each grade a tag says how much it changed.

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>
<!--
  "Term report 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>Term report card with the grades that climb and the average that closes in the ring</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 report card of an online school: each subject's bar climbs to its grade, the average closes in the
         ring; the subject under the pointer shows the teacher's note and how it changed, and the two terms swap -->
    <section class="rep" data-rep aria-label="Term report">
      <header class="rep__head">
        <div><span>Brightpath Academy</span><h1>Report card</h1></div>
        <div class="terms" role="radiogroup" aria-label="Term" data-terms><span class="terms__thumb" data-thumb aria-hidden="true"></span></div>
      </header>

      <div class="rep__top">
        <div class="avg">
          <svg viewBox="0 0 84 84" aria-hidden="true"><circle class="avg__trk" cx="42" cy="42" r="35"></circle><circle class="avg__arc" data-arc cx="42" cy="42" r="35" pathLength="1" transform="rotate(-90 42 42)"></circle></svg>
          <p><strong data-avg>8.5</strong><small>average</small></p>
        </div>
        <p class="note"><span class="note__who roll"><span data-who>Overall</span></span><span class="note__text" data-note>A steady term, stronger in every subject but one.</span></p>
      </div>

      <div class="subs" data-subs></div>
    </section>
    <p class="sr" data-live aria-live="polite"></p>

    <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.

18 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 “Term report 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 a paper-coloured background, a white card: at the top the school’s name, the title “Report card” and a selector with two places, Term 1 and Term 2. Below, on the left a ring with the average in its centre, on the right the comment. Then five rows, one per subject: the name, a bar, the grade and a small tag with the difference from the term before (orange if it went up, red if down, grey if the same). At the start the bars climb one after the other, slightly passing their mark and settling, the grades count, the ring closes up to the average. Moving over a subject its row lights up and next to the ring the name with its grade and the teacher’s note roll in. Changing term the white thumb slides, the bars go to the other term’s grades, the average updates, the comment changes and in the first term the tags disappear.

How it works

The bars and the grades

Each subject has two tweens with the same delay: the bar goes to scaleX grade over TOP with back.out (it may slightly pass its mark and settle), the number counts with power2.out and never passes the grade.

The ring

The average is the sum of the term’s grades divided by the subjects. The ring is an SVG circle with pathLength 1, rotated minus 90 degrees so it starts from the top: its stroke-dashoffset goes to 1 minus average over TOP.

The note

Moving over a row (or reaching it with keyboard focus) the title next to the ring rolls to the name with its grade and the text fades to that term’s teacher’s note; on leaving, the overall comment returns.

Values to change

NameFileDefaultWhat it changes
TERMscript.js2The term open at the start: 1 or 2.
GROWscript.js0.9How many seconds the bars take to climb.
STAGGERscript.js0.07The delay between one subject and the next.
TOPscript.js10The top grade.
ACCENTscript.js#ff8a1fThe colour of the bars and of the ring.
PAUSEscript.js1.7On its own: how many seconds it stays on a subject.
LOOPscript.jstrueLeft alone, a pointer reads two subjects and changes term.

Try them in the Playground

When to use it

For the landing page of an online school, an after-school club or a course, and for the parents’ and students’ area of a school app: grades, average and what the teacher says at a glance. It also suits an employee review, a language course’s scores, a product’s reviews by category.

On phones

The same card, as wide as the screen minus the margins, with ring and rows measured on the height too and slightly narrower columns; the subjects open on tap.

With reduced motion

No climbing bars or sliding thumb: bars, grades, ring and average are at their value at once, and the notes change in place.

Pitfalls

  • The bar may have a small bounce, the number may not: a grade that reaches 9.2 and goes back to 9 looks like a register mistake.
  • A grade that dropped has a red tag with the minus sign, an unchanged one the word “same”: colour alone would not tell everyone.
  • The note has a minimum height of three lines: without it, going from a short note to a long one the subject rows would jump up and down.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 6.2 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