
Speeding marquee
Scroll, Text, Hover
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.
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>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
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 siteThe 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.
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 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 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.
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.
| Name | File | Default | What it changes |
|---|---|---|---|
RISE | script.js | 1 | How far the sheets come out of the folder (1 = about half their height). |
FAN | script.js | 1 | How wide the sheets fan open (0 = straight up). |
DEPTH | script.js | 1 | How much each layer follows the pointer at its own depth (0 = flat). |
LEAN | script.js | 0.955 | How much the glass front leans forward under the pointer (1 = not at all). |
PRESS | script.js | 0.965 | How much the folder gives under a press (1 = not at all). |
BOUNCE | script.js | 1.5 | The spring of the rising sheets: higher passes the mark further. |
SHEEN | script.js | 1 | How bright the light running over the glass is. |
LOOP | script.js | true | Left alone, a pointer opens the folder, looks over the sheets and presses it. |
--accent | style.css | #ff6a3d | The orange of the sun, the button and the palette. |
--bg | style.css | #eeece6 | The warm white of the ground. |
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.
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.
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.
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.
Tested on 16 November 2026
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.
Support Animorio
Animorio stays free thanks to the people who support it. If you like, buy us a coffee: it helps us make the next animations.
You asked for
We made it for you: it’s in the library, with the preview, the Playground and the code to copy.
An animation you can’t find, or a site to take apart in the journal: tell us which. We pick the next ones from here.
With your account’s email and password.
or with your email
You’re signed in as .
With your account, you can download the zip of every animation and every pack, for free.