
Speeding marquee
Scroll, Text, Hover
The bill of a hotel stay, like a paper receipt with a torn edge: the lines arrive one at a time, the receipt grows and the total adds them up as they come in. The extras (spa, minibar) can be taken off with a tap: a line crosses them out and the total comes down; another tap and they are back.
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>
<!--
"Hotel bill receipt" 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>Hotel bill at check-out with the lines that add up and the extras you can take off</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 bill of a hotel stay at check-out: the lines arrive one by one and the receipt grows, the total adds
them up as they come; an extra can be taken off and put back, and the total follows -->
<div class="bill" data-bill>
<section class="bill__paper" aria-label="Your bill">
<header class="bill__head">
<span class="bill__hotel">Casa Brezza</span>
<span class="bill__stay">Room 12, three nights</span>
</header>
<div class="bill__lines" data-lines></div>
<footer class="bill__foot">
<span class="bill__label">Total<span class="bill__note" data-note>Charged to the card on file</span></span>
<b class="bill__total" data-total></b>
</footer>
</section>
<p class="sr" data-live aria-live="polite"></p>
</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>
</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.
15 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 “Hotel bill receipt” from Animorio and fit it into my siteEach line starts at height 0 and reaches its real height (measured first) in 0.34 seconds with power3.out: it is the layout that makes the paper grow. At the end the written height is removed, so the receipt stays elastic on resize.
An object with the total shown: at each line that comes in, or is taken off, it counts to the new sum with power2.out and hops three pixels against the change. No spring on the number.
An element 1.5 pixels high in scaleX: it comes in from the left with power3.out and leaves from the right with power2.in (transform-origin changes). The extras are real buttons with aria-pressed.
| Name | File | Default | What it changes |
|---|---|---|---|
NIGHTLY | script.js | 180 | The price of one night, in euros (made up). |
STEP | script.js | 0.36 | How many seconds between one line and the next on opening. |
HEAVY | script.js | 760 | The font weight of the amount under the pointer. |
ACCENT | script.js | #c2512b | The colour of the line that crosses out. |
PAUSE | script.js | 1.6 | Alone: how many seconds the extra stays off. |
LOOP | script.js | true | Left alone, the bill is written again and a pointer takes an extra off. |
In the online check-out of a hotel or a holiday home, in the guest app, in any summary where the payer must be able to read and dispute the lines (a restaurant bill, an invoice, an order).
The same receipt, as wide as the screen; in short windows the lines drop to 29 pixels. You tap the line: there is no hover.
The lines are all already in place with the final total; taking an extra off, the line appears and the total changes without counting.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 5.0 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.