Skip to content
animorio
IT
All components

Empty projects state

Cards, Hover, TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 7.1 KBGSAP 28 KBFreeDownload the zip

The empty state of the Projects page of a made-up work app, Fieldnote: a stack of three ghost cards, only thin outlines and grey lines, tilted a few degrees, that fan open by a breath on hover; below, No projects yet, one line and the black Create project pill whose + turns 90° on its own centre. On click the button squeezes, the copy fades, the top card takes a full border, a light sweeps over it, the violet bar lights up and the name Untitled project types itself; then it drops on a spring into place as the first card of the grid, the count rolls from 0 to 1, the dashed New project slot appears beside it and the toast with Undo rises at the bottom, which brings the empty state back. Minimal style.

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>
<!--
  "Empty projects state" 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>Empty projects state</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 empty state of a made-up work app, Fieldnote: three ghost cards in a small stack, a title, a line and
         Create project. Clicked, the top card fills in and settles as the first real card of the grid; Undo brings
         the empty state back -->
    <section class="pane" data-pane aria-labelledby="pane-t">
      <header class="pane__head">
        <h2 class="pane__t" id="pane-t">Projects</h2>
        <span class="badge" aria-hidden="true"><span class="badge__roll" data-roll><span>0</span><span>1</span></span></span>
        <span class="pane__ws">Fieldnote</span>
      </header>

      <div class="pane__body" data-body>
        <!-- the dashed slot that appears next to the first project -->
        <button class="slot" type="button" data-slot tabindex="-1" aria-hidden="true">
          <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M8 3.5v9M3.5 8h9"></path></svg>
          <span>New project</span>
        </button>

        <!-- the stack: three cards; the top one becomes the project -->
        <div class="pc pc--back" data-card="back" aria-hidden="true"><span class="pc__g pc__g--a"></span><span class="pc__g pc__g--b"></span><span class="pc__g pc__g--c"></span></div>
        <div class="pc pc--mid" data-card="mid" aria-hidden="true"><span class="pc__g pc__g--a"></span><span class="pc__g pc__g--b"></span><span class="pc__g pc__g--c"></span></div>
        <article class="pc pc--top" data-card="top" aria-label="Untitled project">
          <span class="pc__edge" data-edge aria-hidden="true"></span>
          <span class="pc__shine" data-shine aria-hidden="true"></span>
          <div class="pc__ghost" data-ghost aria-hidden="true"><span class="pc__g pc__g--a"></span><span class="pc__g pc__g--b"></span><span class="pc__g pc__g--c"></span></div>
          <div class="pc__real" data-real>
            <span class="pc__bar" data-bar aria-hidden="true"></span>
            <p class="pc__name"><span data-name></span><span class="pc__caret" data-caret aria-hidden="true"></span></p>
            <p class="pc__meta" data-meta>Just now · 0 tasks</p>
            <div class="pc__foot" data-foot>
              <span class="pc__who" aria-hidden="true">MV</span>
              <span class="pc__tag">Draft</span>
            </div>
          </div>
        </article>

        <div class="copy" data-copy>
          <div class="copy__room" data-room aria-hidden="true"></div>
          <h3 class="copy__t" data-ct>No projects yet</h3>
          <p class="copy__s" data-cs>Projects keep your files, tasks and people in one place.</p>
          <button class="make" type="button" data-make data-autoclic>
            <span class="make__bg" data-make-bg aria-hidden="true"></span>
            <svg class="make__plus" data-plus viewBox="0 0 16 16" aria-hidden="true"><path d="M8 3v10M3 8h10"></path></svg>
            <span class="make__label">Create project</span>
          </button>
        </div>

        <div class="toast" data-toast role="status" aria-hidden="true">
          <svg class="toast__ok" viewBox="0 0 16 16" aria-hidden="true"><path d="M3.6 8.4l2.8 2.7 6-6.4" pathLength="1" data-ok></path></svg>
          <span>Project created</span>
          <button class="toast__undo" type="button" data-undo tabindex="-1">Undo</button>
        </div>
      </div>
    </section>
    <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.

30 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 “Empty projects state” 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 white background, the white panel of a Projects page with a soft shadow: at the top Projects, the 0 count and the name of the workspace, Fieldnote. In the middle a small stack of three ghost cards, one-pixel outlines and three grey lines in place of text, tilted a few degrees over each other; below, No projects yet, Projects keep your files, tasks and people in one place. and the black Create project pill. On hover the stack fans open by a few pixels on a spring and the grey lines of the top card slide by a breath; on the button the + turns 90° on its own centre and the label widens on the width axis. On click the button squeezes and springs back, the empty-state copy drops and fades, the two cards behind straighten and vanish, the top one lifts a little, takes a full border and a shadow, a light sweeps across it, the violet bar stretches out and the name Untitled project types itself with a caret, then Just now · 0 tasks, the initials and Draft arrive. Finally the card drops on a spring into place, first in the grid; the count rolls from 0 to 1, the dashed New project slot appears beside it and the black Project created toast rises from below with a tick drawing itself and Undo. Undo squeezes, the name is erased, the card turns back into a ghost on top of the stack, the other two tilt back in and the copy returns.

How it works

Cards made to measure

A card is half the grid minus the gap between the two; its height follows the ratio but stays between 100 pixels and a quarter of the window height. The script writes them to --cw and --ch on the panel and recomputes the stack and grid positions on resize.

One card, two places

The three cards are absolute in the same corner: GSAP puts them in the middle with x, y and rotation (the stack) and takes the top one to the corner of the grid with back.out. The stack’s space is kept by an empty block in the copy column, which is measured to find where it is.

The fan

Each card has two poses, at rest and open, worked out by the same function: hover goes from one to the other on a short spring with a small delay per card, so they open like cards in a hand.

The + on its centre

The whole svg turns with transformOrigin 50% 50%, never svgOrigin, so the + spins on itself and not in a circle.

Direction without setTimeout

The preview moves on with gsap.delayedCall: hover, click, the card is born, pause, Undo, and again; the first real touch stops it and the action under way finishes by itself.

Values to change

NameFileDefaultWhat it changes
PROJECT_NAMEscript.jsUntitled projectThe name typed into the new card.
TILTscript.js1How tilted the stacked cards are.
FANscript.js1How far the fan opens on hover.
TYPE_SPEEDscript.js0.045Seconds per letter of the name.
LAND_TIMEscript.js0.75How long the card takes to drop into place.
SPRINGscript.js1.3How far the card overshoots its place and comes back.
GAPscript.js12The gap between grid cards, in pixels.

Try them in the Playground

When to use it

For the first empty page of a work app, a back office or a dashboard (projects, folders, boards, clients), or for any list that starts from zero and wants to invite the first item.

On phones

The panel takes the width with a margin, the cards are sized on half the grid and stay low on height too, the line wraps balanced; everything fits the phone box. Touch does the click, the fan is for the mouse.

With reduced motion

No fan and no springs: the copy and the stack fade away, the card appears already filled in its place with the toast, and Undo does the reverse with a fade. The self-running preview does not start.

Pitfalls

  • On the phone a card sized only from the width was 82 pixels tall and the Just now line ended up under the initials: the height has a 100 pixel minimum.
  • The light crossing the card stayed on its right edge after the sweep: it is switched off at the end.
  • The + turns as a whole svg: transformOrigin 50% 50%, because svgOrigin on the svg itself moves the pivot.
  • The tilted cards behind touched the title: the stack’s space is 30 to 42 pixels taller than the card.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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