
Speeding marquee
Scroll, Text, Hover
A pollen forecast on a dark card: pick a day and the three meters for trees, grass and weeds fill step by step, the level’s word changes weight, and the air of the card fills with yellow grains carried by the wind, or clears. The pointer brushes them aside as it passes.
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>
<!--
"Pollen forecast" 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>Pollen forecast</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">
<!-- a pollen forecast: pick a day and the three meters refill, the level's word changes weight,
and the air of the card fills with drifting grains or clears; the pointer brushes them aside -->
<section class="po" data-po aria-label="Pollen forecast">
<canvas class="po__air" data-air aria-hidden="true"></canvas>
<header class="po__head">
<span class="po__title">Pollen</span>
<span class="po__place">Greenfield</span>
</header>
<p class="po__read" aria-live="polite">
<b class="po__level"><span data-level></span></b>
<span class="po__main"><span data-main></span></span>
</p>
<div class="po__rows" data-rows></div>
<div class="po__days" data-days role="radiogroup" aria-label="Day">
<span class="po__pick" data-pick aria-hidden="true"><i></i></span>
</div>
</section>
<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.
13 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 “Pollen forecast” from Animorio and fit it into my siteThe grains live on a canvas behind the text, driven by GSAP’s ticker: each has its own speed and sways on a sine. How many are needed comes from a single number, the sum of the three levels, animated from one day to the next: the extra ones fade in, the surplus fade out.
Each step has an inner fill. Changing day animates only the differences: new steps come in on scaleX from the left with back.out, staggered, and those to remove go out from the last.
The day’s highest level sets the word’s wght and wdth axes: “Low” is thin and narrow, “Very high” heavy and wide. Two CSS variables written on every frame of the tween.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #e6d44c | The colour of the pollen. |
GRAINS | script.js | 26 | How many grains in the air for each point of level. |
WIND | script.js | 1 | How fast the wind runs: 0 still, 2 strong. |
BRUSH | script.js | 46 | How wide the pointer’s brush that pushes the grains aside is, in pixels. |
HOLD | script.js | 2.2 | On its own: how many seconds it stops on each day. |
LOOP | script.js | true | Left alone, a pointer goes through the days. |
In a weather or health app, on the site of an antihistamine or a pharmacy, on the page of a park or a nursery; and wherever an amount is better understood by seeing it in the air: dust, expected snow, crowds.
The same card: days are picked with a finger, and a finger dragged inside the card pushes the grains aside. Word, rows and days shrink with the window’s height; the grains scale with the width.
No wind, snaps or rolls: the grains stand still, as many as the day asks for, and steps, word and tile change at once.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 6.5 KB; the libraries: GSAP 28 KB.
Tested on 18 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.