
Speeding marquee
Scroll, Text, Hover
The query editor of a data tool. Pick a saved query and the text writes itself, keywords, strings and numbers each in their colour; then Run fires, a line of light sweeps under the editor and the result rows drop in one after the other. Point at a column, in the query or in the table, and it lights up in both.
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>
<!--
"SQL query editor" 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>SQL query editor</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 SQL editor: the saved query writes itself in colour, Run sweeps a line and the rows drop in;
a column lights up together in the query and in the result, whichever of the two you point at -->
<section class="sq" data-sq aria-label="SQL query editor">
<div class="sq__tabs" data-tabs role="group" aria-label="Saved queries"></div>
<div class="sq__editor">
<pre class="sq__code" data-code aria-label="Query"></pre>
<button class="sq__run" type="button" data-run>
<svg viewBox="0 0 12 12" aria-hidden="true"><path d="M3.500 2.300v7.400L9.600 6Z"></path></svg>
<span class="sq__roll"><span data-runlabel>Run</span></span>
</button>
<span class="sq__sweep" data-sweep aria-hidden="true"></span>
</div>
<div class="sq__table" data-table role="table" aria-label="Result"></div>
<footer class="sq__foot"><span data-foot aria-live="polite"></span></footer>
</section>
<svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.200 19.200 11l-6.300 1.600-3.300 5.900Z"></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.
14 values to change
Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI
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 “SQL query editor” from Animorio and fit it into my siteA regular expression splits the text into strings, numbers, words and the rest. Each word is a keyword, a result column (and then carries its number) or plain text.
A tween takes a number from zero to the query’s length; at every step the first n characters are shown, piece by piece, so even a half-written word already has its colour.
The line of light is a gradient crossing the editor for as long as the answer takes; then the table is rebuilt and the rows come in staggered.
The word in the query, the header and the cells share one attribute with the column number: a single pointerover listener on the card lights every element with that number.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #5ad4e6 | The colour of the caret, the sweeping line and the lit column. |
SPEED | script.js | 60 | How many characters a second are typed when a saved query opens. |
LATENCY | script.js | 0.6 | How many seconds the query takes to answer after Run. |
STAGGER | script.js | 0.07 | How many seconds pass between one result row and the next. |
LOOP | script.js | true | Left alone, the demo’s pointer points at two columns and opens the other two queries. |
On the landing page of a database, an analytics tool or an admin panel, to show in ten seconds how it is queried; in documentation, beside a sample query.
The same card, as wide as the screen: the query lines are short on purpose and do not wrap, the three columns tighten and long text truncates with an ellipsis. With a finger the columns do not light on hover.
The query is already written and the result already in the table; on a new query the text and rows change at once, with no typing or dropping. Columns still light up. The demo does not move by itself.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 6.2 KB; the libraries: GSAP 28 KB.
Tested on 21 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.
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.