
Speeding marquee
Scroll, Text, Hover
Passing over the letters, each one does a cartoon jump: it squashes, rises, takes a colour and falls back with a bounce. Its neighbours make a wave.
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>
<!--
"Jumping letters" 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="it">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Lettere che saltano</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/standard.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="palco">
<p class="sopra">Passa sulle lettere col mouse, o strisciaci sopra col dito</p>
<h1 class="titolo" data-salta>
<span class="riga">Lettere</span>
<span class="riga">che saltano!</span>
</h1>
<p class="sotto">Ogni lettera si schiaccia, salta, prende un colore e ricade con un rimbalzo. Le vicine fanno l’onda.</p>
</main>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/SplitText.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.
18 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 “Jumping letters” from Animorio and fit it into my siteSplitText splits the title into words and letters; every letter is an inline-block with its origin at the bottom centre, so squashing it keeps it sitting on the line.
First a short hit (0.16 s): scaleX 1.12 and scaleY 0.86 while it rises 20% of its height. It is the cartoon principle: weight shows in the moment the letter deforms.
Then a full second of elastic.out(1, 0.32): the letter comes down, overshoots the line slightly and wobbles. The colour returns in parallel, a little slower.
The two neighbours on each side rise 8% and 3% with 50 and 100 milliseconds of delay, only within the same word. With a finger the touch stays captured by the first element: on every pointermove the letter under the finger is found with elementFromPoint.
| Name | File | Default | What it changes |
|---|---|---|---|
COLORI | script.js | arancio, pesca, menta, verde acqua, giallo | The colours the jump picks at random. |
SALTO | script.js | -20 | How far the letter rises, as a percentage of its height. |
INCLINA | script.js | 12 | The maximum rotation in degrees, in a random direction. |
RIMBALZO | script.js | elastic.out(1, 0.32) | The fall: lower the second number for more wobbles. |
RICHIAMO | script.js | 5 | How many seconds between automatic waves across the title when nobody touches it. Remove it if the title should stay still. |
For a big title with character: a portfolio, a playful brand, a sign. Not for text to be read: a jumping paragraph cannot be read.
Swipe sideways across the title with a finger and the letter under it jumps; tapping a letter makes it jump. The title still lets the page scroll vertically (touch-action: pan-y).
The letters stay still.
GSAP 3.15.0, SplitText (GSAP) 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 2.9 KB; the libraries: GSAP + SplitText 31 KB.
Tested on 27 September 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.