Skip to content
animorio
IT
All components

What’s new notice

Notifications, HoverGSAP, CSS onlyMediumCompressed weight: Demo 7.7 KBGSAP 28 KBFreeDownload the zip

A new version notice, in the clean style of product interface pieces: a small toast at the bottom, «Version 2.4 is here», with the number rolling from 2.3 to 2.4, that opens with a spring into the card of what’s new, three rows coming in one after another; «Update now» fills a thin bar and writes «Updated», «Later» folds everything back into the toast, which slides away.

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>
<!--
  "What’s new notice" 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 update notice that opens into what’s new</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>
    <!-- invisible frame as big as the open card: the preview poster and video are framed on it -->
    <div class="frame" data-inquadra aria-hidden="true"></div>
    <!-- an app's update notice: a small toast at the bottom that opens, FLIP style, into the card of what's new,
         with an update that fills a thin bar and a "Later" that folds everything back and slides it away -->
    <section class="box" data-box role="status" aria-live="polite" aria-label="Fernly update">

      <div class="compact" data-compact>
        <span class="tile" aria-hidden="true">
          <svg viewBox="0 0 24 24"><path d="M12 16.5V7.5"></path><path d="m8 11.2 4-4 4 4"></path><rect x="3.5" y="3.5" width="17" height="17" rx="5.5"></rect></svg>
        </span>
        <span class="compact__text">
          <span class="compact__title" data-title-idle>Version <span class="ver" data-ver>2.<span class="digit"><span class="digit__col" data-vcol><span>3</span><span>4</span></span></span></span><span class="pill__long"> is here</span></span>
          <span class="compact__title compact__title--done" data-title-done><svg class="mini-check" viewBox="0 0 24 24" aria-hidden="true"><path d="m5.5 12.5 4.2 4.2 8.8-9.4"></path></svg>You’re on 2.4</span>
          <span class="compact__sub" data-sub>3 new things in Fernly</span>
        </span>
        <button class="pill pill--soft" type="button" data-open aria-expanded="false">
          <span class="pill__label"><span class="pill__long">See what’s new</span><span class="pill__short">What’s new</span></span>
          <svg class="pill__arrow" viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8h8.5M8.5 4.5 12 8l-3.5 3.5"></path></svg>
        </button>
      </div>

      <div class="full" data-full aria-hidden="true">
        <header class="full__head">
          <span class="tile tile--big" aria-hidden="true">
            <svg viewBox="0 0 24 24"><path d="M12 16.5V7.5"></path><path d="m8 11.2 4-4 4 4"></path><rect x="3.5" y="3.5" width="17" height="17" rx="5.5"></rect></svg>
          </span>
          <div>
            <p class="full__title">What’s new in 2.4</p>
            <p class="full__sub">Fernly · Released Oct 26</p>
          </div>
          <button class="close" type="button" data-close aria-label="Close">
            <svg viewBox="0 0 16 16" aria-hidden="true"><path d="m4.5 4.5 7 7M11.5 4.5l-7 7"></path></svg>
          </button>
        </header>

        <ul class="items">
          <li class="item" data-item>
            <span class="item__icon" aria-hidden="true">
              <svg viewBox="0 0 24 24"><path d="M7.5 17.5h9.2a3.8 3.8 0 0 0 .6-7.6 5.3 5.3 0 0 0-10.2-1.2A4.5 4.5 0 0 0 7.5 17.5Z"></path><path d="m4 4 16 16"></path></svg>
            </span>
            <span class="item__text">
              <span class="item__title">Offline drafts</span>
              <span class="item__line">Keep writing on the train, it syncs when you’re back.</span>
            </span>
          </li>
          <li class="item" data-item>
            <span class="item__icon" aria-hidden="true">
              <svg viewBox="0 0 24 24"><path d="m12 4 8 4-8 4-8-4Z"></path><path d="m4 12 8 4 8-4"></path><path d="m4 16 8 4 8-4"></path></svg>
            </span>
            <span class="item__text">
              <span class="item__title">Shared views <span class="tag" data-tag>New</span></span>
              <span class="item__line">Save a filter and send it to your team in one link.</span>
            </span>
          </li>
          <li class="item" data-item>
            <span class="item__icon" aria-hidden="true">
              <svg viewBox="0 0 24 24"><circle cx="10.5" cy="10.5" r="5.5"></circle><path d="m15 15 4.5 4.5"></path><path d="M3 20h4"></path></svg>
            </span>
            <span class="item__text">
              <span class="item__title">Faster search</span>
              <span class="item__line">Results show up as you type, even in long docs.</span>
            </span>
          </li>
        </ul>

        <footer class="foot" data-foot>
          <div class="foot__actions" data-actions>
            <button class="pill pill--ghost" type="button" data-later>Later</button>
            <button class="pill pill--ink" type="button" data-update>Update now</button>
          </div>
          <div class="foot__progress" data-progress aria-hidden="true">
            <span class="foot__row">
              <span class="foot__word" data-pword>Downloading 2.4</span>
              <span class="foot__pct"><span data-pct>0</span>%</span>
            </span>
            <span class="bar"><span class="bar__fill" data-bar></span></span>
          </div>
          <div class="foot__done" data-donerow aria-hidden="true">
            <svg class="big-check" viewBox="0 0 24 24" aria-hidden="true"><path data-check d="m5.5 12.5 4.2 4.2 8.8-9.4"></path></svg>
            <span>Updated to 2.4</span>
            <span class="foot__hint">Ready when you are</span>
          </div>
        </footer>
      </div>
    </section>
    <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.

38 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 “What’s new notice” 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 white, at the bottom, Fernly’s notice rises with a small spring, an invented app: an indigo tile with an up arrow, «Version 2.4 is here», «3 new things in Fernly» below it, and on the right the grey «See what’s new» pill. As soon as it lands, the version digit rolls from 3 to 4. The drawn pointer goes to the pill, the arrow moves a few pixels, the click squeezes it slightly: the notice fades and its frame grows upwards, with a short spring, into the card of what’s new, while the shadow widens. Inside come the header, «What’s new in 2.4» and the date, then three rows one after another, each with its thin line icon: offline drafts, shared views with a «New» label that swells, faster search. At the bottom «Later» and the black «Update now» pill. One round the pointer presses «Update now»: the buttons rise and disappear, and in their place «Downloading 2.4» with the percentage and a thin bar that runs, slows down, turns into «Installing» and reaches the end; then the check draws itself next to «Updated to 2.4», the shadow takes a hint of indigo, and the card folds back into the notice, which now says «You’re on 2.4» and slides away. The next round it presses «Later»: the card folds back at once and the notice drops and disappears. It also really works, with mouse, finger and keyboard, and Esc closes it.

How it works

One frame, two faces

There is only one frame, centred with left: 50% and GSAP’s xPercent and pinned to the bottom: GSAP changes its width, height, radius and shadow, and as it grows taller it grows upwards. Inside are the two faces, the notice and the card, each with its own width in pixels and centred: while the frame changes, the text never wraps, it gets revealed.

Real sizes

The notice’s width is measured with width: max-content, the card’s is CARD_WIDTH narrowed to the screen, and its height is read after document.fonts.ready; everything is measured again on resize, even halfway through opening.

Staggered news

The card lights up in a quarter of a second, then the header rises by 8 pixels and the three rows by 10, STAGGER seconds apart, with power3.out; the New label swells from half size with back.out(3) as its row arrives.

A fake network

The update is an object from 0 to 1 in five stretches with different curves (quick start, almost still, install, slowdown, last bit): every frame writes the bar with scaleX and the percentage, and past 72% «Downloading» turns into «Installing».

The way back

On closing, the frame goes back to the notice’s size with back.out(1.15); after an update the notice changes its text and loses its button, so it is measured again before shrinking, and then it drops by 28 pixels as it disappears.

Values to change

NameFileDefaultWhat it changes
OPEN_TIMEscript.js0.62How long the spring takes to open the notice into the card of what’s new, in seconds.
STAGGERscript.js0.07How many seconds between one item and the next as they come in.
UPDATE_TIMEscript.js2.6How many seconds the update takes, from the empty bar to the full one.
HOLDscript.js1.6How many seconds «Updated» stays before the card folds back.
READ_TIMEscript.js2.4How many seconds the drawn pointer leaves to read the news before choosing.
ACCENTscript.js#4f46e5The accent colour: the icon, the New label, the bar and the check.
CARD_WIDTHscript.js392How wide the open card is, in pixels (on a phone it narrows by itself).

Try them in the Playground

When to use it

To tell the people using an app or a piece of software that there is a new version without interrupting them: the notice stays small at the bottom, and whoever wants to opens the news and updates right there, without leaving the page. It also works for a SaaS changelog or a browser extension.

On phones

The notice and the card take the screen width minus 16 pixels per side, the «3 new things» line disappears below 380 pixels so the notice stays on one line, and the open card fits inside the box; a tap does what a click does.

With reduced motion

Nothing rises, drops or bounces: the notice appears and disappears with a fade, the card takes its size at once with the rows already in place, the version digit changes without rolling, the bar fills but the check appears already drawn, and the drawn pointer stays hidden.

Pitfalls

  • The frame is centred with GSAP’s xPercent: a translate in the CSS would be wiped by GSAP’s inline transform.
  • The two faces inside the frame have a fixed width in pixels: if they followed the frame, the text would wrap on every frame of the opening.
  • Measured with width: auto, an absolute element with left: 50% shrinks to half its container: the notice’s natural width is read with width: max-content.
  • After an update the notice hides its button with display: none, not with opacity: otherwise the invisible button would keep its place and the notice would stay wide and empty on the right.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

Tested on 26 October 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