
The star rating
Ratings, SVG, Hover
The portfolio button of a made-up photography studio, Halde Studio, to order a signed and numbered print of the photo Low Tide, Erg. On the tap the dark pill turns into a printer: the cotton rag sheet feeds out of its top edge in short bursts, like out of a real printer, while a print head of light runs back and forth in the slot and the icon fills up. Once printed the sheet lifts free of the slot, tips over a hair and settles at a slight tilt, the fresh ink dries, the pencil signature writes itself and copy 12/25 appears beside it; the label becomes Added to cart · 12 of 25. Another tap takes the print out of the cart and the sheet slides back into the pill.
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>
<!--
"Order print button" 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 Order print button with the sheet that feeds out of the pill</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">
<!-- one gesture: order a signed print. Pressed, the pill becomes a printer: the sheet feeds out of its top edge
in short bursts while a print head of light runs along the slot; the finished print lifts free, settles with
a slight tilt, gets its pencil signature and edition number, and the pill says it is in the cart -->
<div class="frame" data-wrap>
<div class="feed" data-feed aria-hidden="true">
<div class="lift" data-lift>
<div class="sheet" data-sheet>
<div class="sheet__img">
<svg viewBox="0 0 100 100" preserveAspectRatio="xMidYMid slice">
<defs>
<linearGradient id="sky" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#e9e1d4"/>
<stop offset="0.62" stop-color="#f4e6d2"/>
<stop offset="1" stop-color="#efd5b6"/>
</linearGradient>
<radialGradient id="sun" cx="0.5" cy="0.5" r="0.5">
<stop offset="0" stop-color="#fff6e6"/>
<stop offset="0.55" stop-color="#f7dfbf"/>
<stop offset="1" stop-color="#f3d6b2" stop-opacity="0"/>
</radialGradient>
<linearGradient id="d1" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#d9a77a"/>
<stop offset="1" stop-color="#c98c5c"/>
</linearGradient>
<linearGradient id="d2" x1="0" y1="0" x2="1" y2="1">
<stop offset="0" stop-color="#b8754a"/>
<stop offset="1" stop-color="#9c5d38"/>
</linearGradient>
<linearGradient id="d3" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#7d4a2e"/>
<stop offset="1" stop-color="#5a3320"/>
</linearGradient>
<filter id="grain" x="0" y="0" width="100%" height="100%">
<feTurbulence type="fractalNoise" baseFrequency="1.6" numOctaves="2" seed="7" result="n"/>
<feColorMatrix in="n" type="matrix" values="0 0 0 0 0.3 0 0 0 0 0.22 0 0 0 0 0.16 0 0 0 0.16 0"/>
<feComposite in2="SourceGraphic" operator="in"/>
<feBlend in2="SourceGraphic" mode="multiply"/>
</filter>
</defs>
<g filter="url(#grain)">
<rect width="100" height="100" fill="url(#sky)"/>
<circle cx="66" cy="40" r="15" fill="url(#sun)"/>
<circle cx="66" cy="40" r="6.2" fill="#fbecd6"/>
<path d="M0 62 C 18 52, 34 50, 52 58 S 84 64, 100 54 V100 H0Z" fill="url(#d1)"/>
<path d="M0 74 C 22 62, 40 66, 58 72 S 86 70, 100 66 V100 H0Z" fill="url(#d2)"/>
<path d="M0 74 C 22 62, 40 66, 58 72" fill="none" stroke="#e7b78c" stroke-width="0.5" opacity="0.7"/>
<path d="M0 88 C 26 80, 46 82, 64 88 S 90 90, 100 84 V100 H0Z" fill="url(#d3)"/>
</g>
</svg>
<span class="sheet__wet" data-wet></span>
</div>
<div class="sheet__foot">
<svg class="sheet__sign" viewBox="0 0 60 18"><path data-sign d="M2 13c3-7 5-10 6-9s-2 9-1 9 4-7 6-7-1 5 1 5 3-4 5-4 0 3 2 3 3-3 5-3c1 0 0 3 2 3s4-5 6-5c1 0 0 5 2 5 3 0 6-4 9-5"/></svg>
<span class="sheet__ed" data-ed><span data-copy>12</span>/<span data-run>25</span></span>
</div>
</div>
</div>
</div>
<button class="c" type="button" data-btn aria-describedby="c-note">
<span class="c__skin" aria-hidden="true"></span>
<span class="c__glow" data-glow aria-hidden="true"></span>
<span class="c__sheen" data-sheen aria-hidden="true"></span>
<span class="c__slot" aria-hidden="true"><span class="c__head" data-head></span></span>
<span class="c__icon" aria-hidden="true">
<svg class="i__print" data-iprint viewBox="0 0 24 24">
<rect class="i__frame" x="4.5" y="3.5" width="15" height="17" rx="1.6"></rect>
<clipPath id="ifill"><rect x="6.6" y="5.6" width="10.8" height="10.2" rx="0.6"></rect></clipPath>
<g clip-path="url(#ifill)"><rect class="i__fill" data-ifill x="6.6" y="5.6" width="10.8" height="10.2"></rect></g>
<path class="i__dune" d="M6.6 13.4c2-1.6 3.8-1.8 5.6-.6s3.4 1 5.2-.4"></path>
<path class="i__line" d="M8 18h8"></path>
</svg>
<svg class="i__check" data-icheck viewBox="0 0 24 24"><circle cx="12" cy="12" r="8.6"></circle><path data-tick d="M8.2 12.3l2.6 2.6 5-5.4"></path></svg>
</span>
<span class="c__labels" data-labels>
<span class="c__label" data-l="idle">Order print<span class="c__sep">·</span><span class="c__price">€<span data-price>180</span></span></span>
<span class="c__label" data-l="wait">Printing your copy</span>
<span class="c__label" data-l="done">Added to cart<span class="c__sep">·</span><span class="c__price"><span data-copy2>12</span> of <span data-run2>25</span></span></span>
</span>
</button>
<p class="note" data-note-wrap>
<span class="note__t" id="c-note" data-note="idle" aria-live="polite">Halde Studio · Low Tide · Edition of <span data-run3>25</span></span>
<span class="note__t" data-note="done">Signed and numbered · Ships in 5 days</span>
</p>
</div>
</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.
32 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 “Order print button” from Animorio and fit it into my siteThe sheet’s container sits behind the pill and ends exactly on its top edge, with a clip-path that only cuts below: lowered by its own height the sheet is invisible, and raising it makes it come out of the slot like out of a printer. The slot is a three-pixel dark line as wide as the sheet.
A single tween takes the progress from 0 to 1 with a linear ease; a function splits it into twelve bursts, and in each one the sheet covers its stretch in the first 48% with a cubic brake and then rests. So the timing stays that of WAIT and the bursts are changed with FEEDS.
While the sheet rests, the same function runs the print head, a segment of warm light with its halo, from one end of the slot to the other: from the left on even bursts, from the right on odd ones, like a real head. The icon in the pill fills with a scaleY tied to the same progress.
The photo is an SVG: sky and sun with gradients, three dunes with their shading, grain made with feTurbulence and blended in multiply. The signature is a pencil path drawn with strokeDashoffset once the sheet has settled, and copy 12/25 arrives last, in italics.
| Name | File | Default | What it changes |
|---|---|---|---|
PRICE | script.js | 180 | The print’s price in euros, in the pill. |
COPY | script.js | 12 | The copy number, in pencil on the sheet and in the pill. |
RUN | script.js | 25 | How many copies the edition has. |
WAIT | script.js | 2.6 | The seconds the sheet takes to feed out of the pill. |
FEEDS | script.js | 12 | In how many bursts the sheet comes out (1 = a single move). |
BOUNCE | script.js | 1.4 | How much the pill and the sheet bounce as it lifts free. |
TILT | script.js | 1.6 | How many degrees the sheet tilts as it settles. |
HOLD | script.js | 3.4 | The seconds the autopilot leaves the print in view. |
PAUSE | script.js | 1.6 | The seconds of rest before the round starts again. |
--ocra | style.css | #e3ac78 | The ochre of the price, the filling icon and the tick. |
--inchiostro | style.css | #17161a | The black of the pill. |
In the portfolio of a photographer, an illustrator or a studio selling limited edition art prints, under the project’s big photo: the purchase is seen coming out of the button and the copy number stays in view.
The pill drops to 56 pixels and the label tightens by a point; the print is sized on the screen height; the finger taps like the mouse. Without hover the light stays off and the corner of the sheet does not peek before the tap.
No feeding sheet or print head: the label changes with a fade, the print fades in already out of the pill, with signature and number, and fades away on the way back.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 7.8 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.