
Speeding marquee
Scroll, Text, Hover
A product’s feature requests board: five ideas with their votes. Your vote fills the arrow with orange, the number rolls and the idea climbs over the one above on a spring, lifting a little; meanwhile other people’s votes arrive, with a short light on the button, and move the rows too.
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>
<!--
"Feature voting board" 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>Feature voting board with rows that overtake each other</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 feature requests board of a product: five ideas with their votes; your vote fills the arrow, the count
rolls and the idea climbs over the one above on a spring; votes from other people keep arriving and move
the rows too, with a small light on the count that changed -->
<section class="board" data-board aria-label="Feature requests">
<header class="head">
<div>
<p class="head__brand">Orbit Mail</p>
<h1 class="head__title">What should we build next?</h1>
</div>
<p class="head__live"><span data-total>657</span> votes</p>
</header>
<ol class="ideas" data-ideas>
<li class="idea" data-idea data-votes="212"><button class="vote" type="button" aria-pressed="false" data-vote><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M8 3.2 13 9.6H3Z"></path></svg><span class="vote__n"><span data-n>212</span></span></button><div class="idea__text"><p class="idea__name">Snooze until I am back at my desk</p><p class="idea__tag idea__tag--doing">In progress</p></div></li>
<li class="idea" data-idea data-votes="128"><button class="vote" type="button" aria-pressed="false" data-vote><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M8 3.2 13 9.6H3Z"></path></svg><span class="vote__n"><span data-n>128</span></span></button><div class="idea__text"><p class="idea__name">Shared drafts with comments</p><p class="idea__tag idea__tag--planned">Planned</p></div></li>
<li class="idea" data-idea data-votes="127"><button class="vote" type="button" aria-pressed="false" data-vote><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M8 3.2 13 9.6H3Z"></path></svg><span class="vote__n"><span data-n>127</span></span></button><div class="idea__text"><p class="idea__name">Dark theme for the editor</p><p class="idea__tag">Under review</p></div></li>
<li class="idea" data-idea data-votes="96"><button class="vote" type="button" aria-pressed="false" data-vote><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M8 3.2 13 9.6H3Z"></path></svg><span class="vote__n"><span data-n>96</span></span></button><div class="idea__text"><p class="idea__name">Undo send, up to a minute</p><p class="idea__tag">Under review</p></div></li>
<li class="idea" data-idea data-votes="94"><button class="vote" type="button" aria-pressed="false" data-vote><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M8 3.2 13 9.6H3Z"></path></svg><span class="vote__n"><span data-n>94</span></span></button><div class="idea__text"><p class="idea__name">Keyboard shortcuts you can edit</p><p class="idea__tag">Under review</p></div></li>
</ol>
</section>
<p class="sr" data-live aria-live="polite"></p>
<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.
29 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 “Feature voting board” from Animorio and fit it into my siteThe ideas are sorted by votes; on a tie the one with the most recent vote wins (a counter that goes up at every vote). So your vote, if it ties, puts you in front.
Before reordering, the position of each row is measured, then the rows are put back in the DOM in the new order and measured again: each starts from the difference and returns to zero. Those going up use elastic.out and take the is-moving class (shadow, round corners, above the others); those going down use power3.out, with no bounce.
The button has aria-pressed: pressed it turns solid, the arrow fills and the number rolls up; removing the vote it rolls down.
other adds a vote to an idea, rolls the number and takes from 1 to 0 a CSS variable that lights a ring round the button. After a real hand has touched the board, a delayedCall brings one roughly every OTHERS seconds, on one of the three least voted ideas.
| Name | File | Default | What it changes |
|---|---|---|---|
SPRING | script.js | 0.8 | How long the spring of the row changing place lasts, in seconds. |
LIFT | script.js | 1.03 | How much the row grows while overtaking (1 = not at all). |
OTHERS | script.js | 1.5 | How often, in seconds, someone else’s vote arrives (0 = never). |
ACCENT | script.js | #ff5a36 | The colour of your vote. |
PAUSE | script.js | 2.2 | By itself: the pause after each of the pointer’s votes, in seconds. |
LOOP | script.js | true | Left alone, a pointer votes and the others’ votes arrive. |
For the suggestions page or the public roadmap of an app, a game, a product with a community: people who use the product see that their vote counts, because the row really moves. Also good for audience questions at an event.
The same card, as wide as the screen: long titles are cut with an ellipsis, the total at the top disappears on narrow screens and the rows are slightly shorter on a short screen.
No animated overtaking: the rows change place at once and the numbers change with a fade. Other people’s votes do not arrive by themselves after the first touch.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 5.1 KB; the libraries: GSAP 28 KB.
Tested on 14 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.