
Melting words
Text, Scroll, SVG
Scroll inside the preview
The singles draw of the Fallowmere Open, a made-up grass court tennis tournament, on an almost black lawn green: as you scroll the boxes draw themselves in thin lines and the eight quarterfinalists slide into place. A drawn tennis ball hops from match to match, the games of every set roll in like on a scoreboard, the loser fades, the winner's line runs on to the next round and the name slides into the next box. Then the semifinals and the final in the middle, under a thin line cup that draws itself and lights up ball yellow together with the champion's path.
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>
<!--
"Tennis draw" 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>Fallowmere Open, singles draw</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>
<!-- the singles draw of a made-up grass court tournament, the Fallowmere Open. The stage sticks while you scroll
and the scroll plays the last week: the eight quarterfinalists slide into the draw, a tennis ball hops from
match to match, the set scores roll, the loser fades, the winner's line draws on to the next round and the name
slides into the next box. Then the semifinals, then the final in the middle under a thin line trophy that lights
up with the champion. -->
<main>
<section class="draw" data-draw>
<div class="stage" data-stage>
<div class="light" data-light aria-hidden="true"></div>
<div class="grain" aria-hidden="true"></div>
<div class="frame" data-frame>
<article class="panel" data-panel>
<span class="panel__edge" aria-hidden="true"></span>
<span class="panel__glow" aria-hidden="true"></span>
<header class="head">
<span class="mark" aria-hidden="true">
<svg viewBox="0 0 16 16"><rect x="2.5" y="3.5" width="11" height="9" rx="1"/><path d="M8 3.5v9M2.5 6h11M2.5 10h11M5 6v4M11 6v4"/></svg>
</span>
<p class="brand">Fallowmere Open <span class="brand__sub muted">Singles draw</span></p>
<p class="meta">
<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M2.5 12.5c1.6-1.2 2.2-4 2.6-7M6.6 12.5c.6-1.6.8-4.6.4-7.8M10 12.5c-.2-2 .4-5 1.6-7.4M13.5 12.5c-1-1.4-1.6-3.6-1.4-5.6"/></svg>
<span>Grass</span><span class="meta__sep" aria-hidden="true"></span><span class="muted">Best of three</span>
</p>
</header>
<div class="map" data-map>
<svg class="bracket" data-svg role="img" aria-label="The singles draw of the Fallowmere Open, from the quarterfinals to the final">
<defs>
<radialGradient id="cup-glow" cx="0.5" cy="0.5" r="0.5">
<stop offset="0" style="stop-color:var(--ball)" stop-opacity="0.5"/>
<stop offset="0.45" style="stop-color:var(--ball)" stop-opacity="0.14"/>
<stop offset="1" style="stop-color:var(--ball)" stop-opacity="0"/>
</radialGradient>
<linearGradient id="sheen" x1="0" y1="0" x2="1" y2="0">
<stop offset="0" stop-color="#fff" stop-opacity="0"/>
<stop offset="0.5" stop-color="#fff" stop-opacity="0.7"/>
<stop offset="1" stop-color="#fff" stop-opacity="0"/>
</linearGradient>
<radialGradient id="ball-shade" cx="0.36" cy="0.32" r="0.75">
<stop offset="0" style="stop-color:var(--ball-hi)"/>
<stop offset="0.55" style="stop-color:var(--ball)"/>
<stop offset="1" style="stop-color:var(--ball-lo)"/>
</radialGradient>
</defs>
<g data-base></g>
<g data-links></g>
<g data-boxes></g>
<g data-cup></g>
<g data-ball></g>
</svg>
</div>
<footer class="foot">
<div class="rounds" data-rounds>
<span class="rounds__pill" data-pill aria-hidden="true"></span>
<span class="rounds__tab" data-round="0"><span class="long">Quarterfinals</span><span class="short">QF</span></span>
<span class="rounds__tab" data-round="1"><span class="long">Semifinals</span><span class="short">SF</span></span>
<span class="rounds__tab" data-round="2">Final</span>
</div>
<div class="champ" data-champ>
<div class="champ__wait" data-wait aria-hidden="true"><span class="bar bar--a"></span><span class="bar bar--b"></span></div>
<p class="champ__line" data-champline>
<span class="champ__label muted">Champion</span>
<b class="champ__name" data-champname>R. Castellane</b>
<span class="champ__score muted" data-champscore></span>
</p>
</div>
</footer>
</article>
</div>
<p class="sr" aria-live="polite" data-live></p>
</div>
</section>
</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/ScrollTrigger.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/lenis@1.3.26/dist/lenis.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 “Tennis draw” from Animorio and fit it into my siteThe section is 460vh tall and the stage inside is sticky at 100vh (100lvh where available). The whole tournament is one paused GSAP timeline that ScrollTrigger drives with scrub: the scroll is the time, and scrolling back takes the draw apart. Lenis smooths the scrolling.
Players, sets and winners live in two objects; two functions turn them into positions in the viewBox, a wide one (800 by 290, both halves into the middle) and a tall one (340 by 360, top and bottom into the middle). The script picks the one that fits the stage and, if that changes on resize, rebuilds everything at the scroll point you were at.
Every line and every outline is a path with a stroke-dasharray equal to its length (getTotalLength): the timeline takes stroke-dashoffset from there to zero. Underneath there is the whole draw in a fainter line, on top the line of every winner that traces on when the match is over.
Every set score is a column of digits from zero to the result, inside a clipPath the size of the row: the timeline lifts it by 14 units a digit with a light back.out, so the number stops with a small settle like on a scoreboard.
Every hop is a tween of a number from 0 to 1: in onUpdate x goes straight, y draws a parabola as high as the distance, then there is a small second bounce; the spin follows the travel and the shadow narrows and fades with the height. On landing an inner group squashes with svgOrigin at the bottom of the ball.
At the end the timeline takes the colour of the champion's lines and of the cup to ball yellow, lights the glow and the fill of the cup, sweeps a slanted sheen inside the cup (clipPath) and swaps the waiting shimmer in the foot for the name and the score of the final.
| Name | File | Default | What it changes |
|---|---|---|---|
RIDE | script.js | 1 | How much scroll the whole tournament takes: 2 = twice as long. |
HOP | script.js | 1 | How high the ball hops from one match to the next (0 = it slides). |
SQUASH | script.js | 1 | How much the ball squashes as it lands (0 = not at all). |
DIM | script.js | 0.36 | How far the loser of every match fades (1 = not at all). |
GLOW | script.js | 1 | How strong the light of the trophy and of the champion is. |
ROLL | script.js | 0.45 | How long the set scores take to roll into place. |
On a tournament page (tennis, padel, chess, e-sports, five-a-side, a company tournament), in the results section of a sports club or a sports app, in the story of a season or a knockout award: wherever the reader should watch the tournament move on round after round to the winner while scrolling.
The same animations at adapted sizes: under 600 pixels wide or on a stage taller than it is wide the draw turns upright (the quarterfinals above and below, the final in the middle with the cup beside it) and the panel is as wide as the height allows, so everything fits in 341 by 410.
No long scroll and no movement: the draw is already complete, the scores in place, the champion and the cup lit; the panel fades in.
GSAP 3.15.0, ScrollTrigger 3.15.0, Lenis 1.3.26, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 13 KB; the libraries: GSAP + ScrollTrigger 45 KB, Lenis 5.3 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.