Skip to content
animorio
IT
Back to the library

Asterisk headline

Text, TransitionsGSAPEasyCompressed weight: Demo 5.1 KBGSAP 28 KBFreeDownload the zip

A minimal text animation: the promise and its small print. A big headline rises letter by letter on warm white, taking on weight on a spring; then a small orange asterisk falls spinning after the last letter, the letters make room, and as it lands the headline gives way a little, narrower and lighter on the two axes of the variable typeface. Below, a hairline draws itself and the fine print rises. With the pointer both asterisks turn by one arm; a tap brings the next promise.

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>
<!--
  "Asterisk headline" 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 headline whose asterisk leads to the fine print</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="scena" data-stage>
    <div class="palco">
      <!-- the promise: the script splits it into letters; the asterisk lands after the last one -->
      <h1 class="titolo" data-title></h1>
      <!-- the fine print the asterisk leads to -->
      <div class="nota-piede" data-foot>
        <span class="filo" data-rule></span>
        <p class="clausola" data-clause aria-live="polite"></p>
      </div>
    </div>
    <p class="aiuto" data-help>Tap for the next promise</p>
  </main>

  <!-- the asterisk, drawn: six thin arms -->
  <svg width="0" height="0" style="position:absolute" aria-hidden="true">
    <symbol id="asterisco" viewBox="-10 -10 20 20">
      <g stroke="currentColor" stroke-width="2.1" stroke-linecap="round">
        <line x1="0" y1="-8.4" x2="0" y2="8.4"/>
        <line x1="-7.27" y1="-4.2" x2="7.27" y2="4.2"/>
        <line x1="-7.27" y1="4.2" x2="7.27" y2="-4.2"/>
      </g>
    </symbol>
  </svg>

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

14 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 “Asterisk headline” 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 empty warm white a big promise rises on two lines, ‘Free / forever’: each letter comes up from below with a hint of bounce and gains weight on its own, passes the mark by a hair and settles. Then the space after the last letter opens, the letters slide aside to make room, and a small six-armed orange asterisk falls spinning from above. It lands in the top corner, like a superscript, squashing and springing back, and the last letter dips a pixel under the knock. At that instant the promise gives way: on the two axes of the variable typeface it grows narrower and lighter, starting from the last letter. Below, a hairline draws itself from the centre and the fine print rises word by word behind a second, tiny asterisk: ‘For the first 14 days.’. After a couple of seconds everything leaves (the note, the line, the asterisk flying off as it spins, the letters losing weight) and the next promise comes: ‘Unlimited storage’, ‘Cancel anytime’, ‘Instant setup’, each with its own clause. With the pointer over the headline both asterisks turn together by one arm and the note darkens; a tap moves straight to the next promise.

How it works

One letter, one weight

Each letter is an inline-block with its own --w variable inside font-variation-settings; GSAP takes it from 240 to 700 with a back.out staggered by 34 thousandths, while the child rises from 62% of its height. A modifier keeps the weight between 100 and 900 even in the overshoot.

The space that opens

The asterisk lives in a zero-width inline-block at the end of the last line. GSAP widens it to 0.42em and the centred line moves by itself: the letters make room with no maths. Inside, the asterisk drawn in SVG falls from 1.3em higher, spinning 150 degrees.

The landing

On arrival it squashes to 0.72 and widens to 1.22 for seventy thousandths, then comes back with elastic.out; meanwhile it turns another 30 degrees on a spring and the last letter dips 0.03em and comes back up.

The promise gives way

At the same instant the headline’s --wd variable goes from 100 to 86 and the letters’ weight from 700 to 590, staggered from the last one: the headline shrinks towards the asterisk, as if the asterisk were taking its strength away.

The note and the loop

The line grows with scaleX from the centre, the tiny asterisk spins in, the words of the note rise 9 pixels one after another. The exit sits at the end of the same timeline, after the exit label; a tap jumps there, and when the loop ends the next promise is written.

Values to change

NameFileDefaultWhat it changes
WEIGHTscript.js700The weight of the promise before the asterisk.
SHRUNK_WEIGHTscript.js590The weight once the asterisk has landed.
SHRUNK_WIDTHscript.js86The width once the asterisk has landed, from 75 to 125 (100 is normal).
BOUNCEscript.js0.5How far letters and asterisk pass the mark before they settle.
HOLDscript.js2.6How many seconds the fine print stays before the next promise.
SPEEDscript.js12 = twice as fast, 0.5 = half as fast.
LOOPscript.jstrueGo through the promises again and again.

Try them in the Playground

When to use it

For the pricing page or the hero of a SaaS product, a subscription app or an online shop that wants to state a promise with a wink, or for a blog or a portfolio that plays with the fine print.

On phones

The same animation with adapted sizes: the headline is as big as the box allows, in width and height, and a tap brings the next promise.

With reduced motion

No falls and no springs: the promise appears already narrow and light, then the asterisk and the note fade in and leave the same way.

Pitfalls

  • With a back.out the weight of the variable typeface can leave its limits in the overshoot: keep it between 100 and 900 with a modifier.
  • The asterisk must live inside the line, in an inline-block that widens, not laid on top with absolute positioning: only then does it follow the last letter while the headline changes width.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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