Skip to content
animorio
IT
All components

Storage cleanup

Lists, HoverGSAP, CSS onlyMediumCompressed weight: Demo 5.8 KBGSAP 28 KBFreeDownload the zip

An app’s storage cleanup in a card on white: how much is used, a bar and four things to tick, large files, duplicate photos, old downloads and cache. Ticking one makes the total to free count inside the button and turns the matching piece of the bar blue. “Free up” removes it: the bar shortens, the space used counts down and the cleaned rows turn to “Clean” one after the other.

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>
<!--
  "Storage cleanup" 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>Storage cleanup</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 storage cleanup of an app: the things to tick, the total to free counting, the part of the bar
         that will go and, after the button, the bar shortening and the rows turning clean -->
    <section class="sc" data-sc aria-label="Free up space">
      <header class="sc__head"><strong>Free up space</strong><span class="sc__used"><b data-outused>46.8</b> of 64 GB</span></header>
      <div class="sc__bar" aria-hidden="true"><i class="sc__fill" data-fill><i class="sc__go" data-go></i></i></div>
      <ul class="sc__list" data-list></ul>
      <button type="button" class="sc__btn" data-btn aria-disabled="true">
        <span class="sc__face" data-face="idle">Select what to remove</span>
        <span class="sc__face" data-face="go">Free up <span data-outsel>0.0</span> GB</span>
        <span class="sc__face" data-face="done"><svg viewBox="0 0 16 16" aria-hidden="true"><path pathLength="1" d="m3.600 8.400 2.900 2.900 5.900-6.600"></path></svg>Freed <span data-outfreed>0.0</span> GB</span>
      </button>
    </section>
    <span class="live" aria-live="polite" data-live></span>

    <svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.200 19.200 11l-6.300 1.600-3.300 5.900Z"></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.

19 values to change

Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI

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 “Storage cleanup” 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, a rounded card: “Free up space” and on the right “46.8 of 64 GB”. Below, a thin bar three quarters full. Then four rows, each with a square box, a name with a smaller line under it and the size on the right: “Large files”, 2.1 GB; “Duplicate photos”, 0.8 GB; “Old downloads”, 1.4 GB; “App cache”, 0.6 GB. At the bottom a light grey button, “Select what to remove”. Tapping “Large files” turns its box blue with the tick drawing and a small bounce, the last piece of the bar turns blue, and the button darkens into “Free up 2.1 GB”. With two more the number counts to 4.1 and the blue piece lengthens. Tapping the button turns it light green with a tick and “Freed 4.1 GB”, the blue piece leaves the bar, at the top the number counts down to 42.7, and the three rows turn one after the other to “Clean” in green, dimming. Two seconds later the button is back to “Select what to remove”.

How it works

Two numbers carry it all

The space used and the space picked to be freed. Animating them rewrites the figures at the top and in the button, the bar’s width and that of the blue piece, which is a part of the bar anchored to its right end.

The rows are checkboxes

Every row is a button with role checkbox: ticking it colours the box and the tick is drawn with stroke-dashoffset.

The button has three faces

“Select what to remove” while nothing is picked, “Free up” with the total, and “Freed” afterwards: they sit on top of each other and swap.

The cleanup

The picked number goes to zero and the used one drops by the same amount, so the blue piece closes while the bar shortens; the cleaned rows change one after the other.

Values to change

NameFileDefaultWhat it changes
ACCENTscript.js#2f6fe0The colour of the ticked boxes and of the piece of bar to be freed.
GOODscript.js#128a5eThe colour of what has been cleaned.
COUNTscript.js0.7How many seconds the numbers take to count.
SPRINGscript.js1How much the boxes and the button bounce.
LOOPscript.jstrueLeft alone, the demo’s pointer ticks three items, frees the space and starts again.

Try them in the Playground

When to use it

In the settings of a photo app, a cloud drive or a phone, when space is running out; the same tickable list with its total in the button carries subscriptions to cancel, notifications to switch off, emails to archive or the items to drop from a quote.

On phones

The card is at most 348 pixels wide and about 310 tall, and narrows with the screen: long names truncate with an ellipsis. The rows are 44 pixels tall and can be tapped anywhere; the button is 44 tall.

With reduced motion

No running counts and no bounces: ticking an item shows the new numbers, bar and tick at once; freeing the space shows the bar already shorter and the rows already “Clean”. The button’s fades stay. The demo’s pointer does not start.

Pitfalls

  • With nothing picked the button is not switched off with disabled but with aria-disabled: it stays reachable from the keyboard and says why it does nothing.
  • Deleting cannot be undone: in a real product “Free up” needs a confirmation or a bin with a deadline first, and the rows show what is inside.
  • The blue piece is a fraction of the used part, not of the disk: that keeps it attached to the bar’s right end while the bar shortens.
  • An aria-live region gives every item picked with the total and, at the end, how much was freed.
  • Sizes and items are invented.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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