Skip to content
animorio
IT
Back to the library

Glass folder card

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

A premium hover animation: the portfolio project card of Oddfield, a made-up design studio, drawn as a dark folder with a frosted glass front. Under the pointer the folder lifts, the glass leans forward a touch and catches the light, and the project's three sheets (the logo, the website, the palette) come out of the pocket in a fan on a spring; each layer follows the pointer at its own depth. A press tucks the sheets back in and they jump out again.

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>
<!--
  "Glass folder 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>Northlight, a project folder of Oddfield Studio</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 project card of a made-up design studio, Oddfield, drawn as a folder: a dark back with its tab, three sheets
         of the project inside (the logo, the website, the palette) and a front of frosted glass with the project's name.
         Under the pointer the folder lifts, the glass front leans forward a little, the sheets rise out of it and fan,
         and each layer follows the pointer at its own depth. A press tucks the sheets back in and they spring out again -->
    <div class="scene" data-scene>
      <div class="frame" data-frame>
        <span class="shadow shadow--far" data-far aria-hidden="true"></span>
        <span class="shadow shadow--near" data-near aria-hidden="true"></span>
        <div class="tilt" data-tilt>
          <article class="folder" data-folder tabindex="0" aria-label="Northlight, brand identity and website, 24 files">
            <svg class="back" viewBox="0 0 240 172" aria-hidden="true">
              <defs>
                <linearGradient id="backFill" x1="0" y1="0" x2="0.35" y2="1">
                  <stop offset="0" stop-color="#3a4357"></stop>
                  <stop offset="0.55" stop-color="#262d3b"></stop>
                  <stop offset="1" stop-color="#1a1f2a"></stop>
                </linearGradient>
                <linearGradient id="backEdge" x1="0" y1="0" x2="0" y2="1">
                  <stop offset="0" stop-color="#ffffff" stop-opacity="0.34"></stop>
                  <stop offset="0.25" stop-color="#ffffff" stop-opacity="0.06"></stop>
                  <stop offset="1" stop-color="#ffffff" stop-opacity="0"></stop>
                </linearGradient>
              </defs>
              <path class="back__body" d="M14 0H76C84 0 87.5 3.6 91.5 8.6L94.5 12.4C97 15 99.4 16 104 16H226A14 14 0 0 1 240 30V158A14 14 0 0 1 226 172H14A14 14 0 0 1 0 158V14A14 14 0 0 1 14 0Z" fill="url(#backFill)"></path>
              <path d="M14 0.5H76C84 0.5 87.2 4 91.1 8.9L94.1 12.7C96.7 15.4 99.2 16.5 104 16.5H226A13.5 13.5 0 0 1 239.5 30V158A13.5 13.5 0 0 1 226 171.5H14A13.5 13.5 0 0 1 0.5 158V14A13.5 13.5 0 0 1 14 0.5Z" fill="none" stroke="url(#backEdge)" stroke-width="1"></path>
              <text class="back__tab" x="14" y="10.6">ODDFIELD</text>
            </svg>

            <div class="sheets">
              <!-- the logo sheet -->
              <div class="sheet sheet--logo" data-sheet>
                <div class="sheet__par" data-par>
                  <div class="sheet__paper" data-paper>
                    <span class="paper__cap">Logo</span>
                    <svg class="logo" viewBox="0 0 64 64" aria-hidden="true">
                      <defs>
                        <linearGradient id="sun" x1="0" y1="0" x2="0" y2="1">
                          <stop offset="0" stop-color="#ffb28a"></stop>
                          <stop offset="1" stop-color="#ff6a3d"></stop>
                        </linearGradient>
                      </defs>
                      <path d="M12 40a20 20 0 0 1 40 0Z" fill="url(#sun)"></path>
                      <path d="M8 40h48M14 46h36M21 52h22" stroke="#1d2230" stroke-width="2.4" stroke-linecap="round" fill="none"></path>
                    </svg>
                    <span class="paper__word">northlight</span>
                    <span class="paper__rule"></span>
                    <span class="paper__bars"><i></i><i></i></span>
                  </div>
                </div>
              </div>
              <!-- the palette sheet -->
              <div class="sheet sheet--palette" data-sheet>
                <div class="sheet__par" data-par>
                  <div class="sheet__paper" data-paper>
                    <span class="paper__cap">Palette</span>
                    <span class="swatch swatch--a"><b>Ember</b></span>
                    <span class="swatch swatch--b"><b>Dawn</b></span>
                    <span class="swatch swatch--c"><b>Slate</b></span>
                    <span class="swatch swatch--d"><b>Chalk</b></span>
                    <span class="specimen">Aa</span>
                  </div>
                </div>
              </div>
              <!-- the website sheet, in front of the other two -->
              <div class="sheet sheet--web" data-sheet>
                <div class="sheet__par" data-par>
                  <div class="sheet__paper" data-paper>
                    <span class="web__nav"><i class="web__mark"></i><i></i><i></i><i></i></span>
                    <span class="web__hero">
                      <span class="web__sun"></span>
                      <span class="web__line"></span>
                    </span>
                    <span class="web__head"><i></i><i></i></span>
                    <span class="web__cards"><i></i><i></i><i></i></span>
                  </div>
                </div>
              </div>
            </div>

            <div class="front" data-front>
              <span class="front__lit" data-lit aria-hidden="true"></span>
              <span class="front__sheen" aria-hidden="true"><span class="front__band" data-sheen></span><span class="front__band front__band--flash" data-flash></span></span>
              <div class="front__in" data-content>
                <div class="front__top">
                  <span class="chip">Brand identity</span>
                  <span class="year">2026</span>
                </div>
                <h2 class="title" data-title>Northlight</h2>
                <p class="sub">Identity and website for a solar co-op</p>
                <div class="front__foot">
                  <span class="meta">
                    <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3.2 4.4a1.2 1.2 0 0 1 1.2-1.2h2.3l1.3 1.4h3.6a1.2 1.2 0 0 1 1.2 1.2v5.8a1.2 1.2 0 0 1-1.2 1.2H4.4a1.2 1.2 0 0 1-1.2-1.2Z"></path></svg>
                    24 files
                  </span>
                  <span class="meta meta--soft">Oddfield Studio</span>
                  <button class="open" type="button" data-btn aria-label="Open the Northlight case study">
                    <span class="open__face" data-face></span>
                    <svg class="open__ico" viewBox="0 0 16 16" aria-hidden="true"><path data-arrow d="M4.6 11.4 11.2 4.8M6 4.6h5.4V10"></path></svg>
                  </button>
                </div>
              </div>
            </div>
          </article>
        </div>
      </div>
    </div>
    <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>
    <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.

35 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 “Glass folder 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 warm white ground a graphite folder sits alone with its tab, engraved ODDFIELD. Inside, three sheets of paper peek out: on the left the Northlight logo, a sun rising over three orange and black lines, in the middle the website page with a sky going from night blue to orange, on the right the palette with four colours and the ‘Aa’ specimen. The front of the folder is frosted glass: through it the sheets show blurred, and on it sit the ‘Brand identity’ label, the year, the name Northlight, the line ‘Identity and website for a solar co-op’, ‘24 files’, the studio's name and a round button with an arrow. When the pointer arrives the folder lifts a few pixels, the glass leans forward a touch and its edge catches the light, and the three sheets come out of the pocket one after the other, first the website and then the two at the sides, fanning open on a spring that passes the mark and settles. The name widens on the width axis, the button fills with orange and the arrow takes a step up. Moving the pointer, each layer follows it at its own depth: the front sheet the most, the ones behind less, the text barely, the folder tilts by a degree and the two shadows below slide the other way, while a band of light runs over the glass. On a press the folder gives, the sheets tuck back into the pocket and the shadows tighten; on release the sheets jump out higher and return to their place on an elastic, the button bounces and the light crosses the glass in one stroke. Left alone, a drawn pointer opens the folder, looks over the sheets, presses the button and leaves, and the folder closes again.

How it works

Three layers in a folder

The back is an SVG with the tab and a one pixel edge that catches the light at the top; above it are the three sheets, drawn in HTML and CSS (no photos); in front is the glass, a div with backdrop-filter that blurs the sheets behind and a fine grain overlay. Everything is measured in em, and the em is a twenty-fourth of the folder's width, which follows both the width and the height of the window.

The sheets fanning out

Each sheet has three levels: the first for coming out (xPercent, yPercent, rotation, with back.out and a different delay per sheet), the second for the parallax, the third for the press. That way the tweens never cancel each other.

The layered parallax

The pointer's position, from minus one to one around the folder's centre, goes to one quickTo per level: the sheets move in proportion to their depth, the text on the glass a little, the folder tilts by a degree, the shadows go the other way and the band of light crosses the glass.

The glass that leans

The front squashes in height from the bottom (scaleY to 0.955) and turns on a layer of light with a white edge: it seems to lean towards the viewer without any 3D. The name widens on Mona Sans's wdth axis through an animated CSS variable.

Press and return

On a press the folder goes to 0.965, the sheets drop 9% into the pocket and the near shadow darkens; on release the sheets rise past their place and come back with elastic.out, the folder bounces and a band of light crosses the glass.

Values to change

NameFileDefaultWhat it changes
RISEscript.js1How far the sheets come out of the folder (1 = about half their height).
FANscript.js1How wide the sheets fan open (0 = straight up).
DEPTHscript.js1How much each layer follows the pointer at its own depth (0 = flat).
LEANscript.js0.955How much the glass front leans forward under the pointer (1 = not at all).
PRESSscript.js0.965How much the folder gives under a press (1 = not at all).
BOUNCEscript.js1.5The spring of the rising sheets: higher passes the mark further.
SHEENscript.js1How bright the light running over the glass is.
LOOPscript.jstrueLeft alone, a pointer opens the folder, looks over the sheets and presses it.
--accentstyle.css#ff6a3dThe orange of the sun, the button and the palette.
--bgstyle.css#eeece6The warm white of the ground.

Try them in the Playground

When to use it

For the work grid of a portfolio, a design studio or an agency: each project is a folder, and whoever passes sees at once the sheets inside it (the logo, the website, the palette) before opening the case study.

On phones

The same animation with adapted sizes: the folder is measured on width and height together and, with the sheets out, fits the box entirely. A finger taps the folder to open and press it, dragging makes the layers follow it, and tapping outside closes it.

With reduced motion

Nothing moves: the folder fades in with the sheets already out, still in their place; on hover the light on the glass and the orange of the button fade in.

Pitfalls

  • A sheet moved at once by the rise, the parallax and the press gets stuck: each movement has its own element (the sheet, its child for the parallax, the grandchild for the press).
  • Glass with backdrop-filter only blurs what is behind it in the same context: the sheets must sit inside the folder, under the front, not in a separate layer.
  • The shadows under the folder must not tilt with it: they sit outside the tilting element, and move the opposite way to the pointer.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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