
Melting words
Text, Scroll, SVG
Scroll inside the preview
A harbour’s tide page, to scroll: the scroll is the day. The hour moves along the curve, the height reads in metres, the water in the glass rises, falls and tilts with the speed of the scroll, and the high and low waters light up as they pass.
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>
<!--
"Tide chart" 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>Tide chart</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 tide page of a made-up harbour app, Saltmere Bay. The page sticks while you scroll and the scroll is the day:
the hour moves along the tide curve, the height is read off it, the water in the glass follows and tilts with
the speed of the scroll, and the high and low waters light up as they pass. -->
<main>
<section class="viaggio" data-viaggio>
<div class="palco" data-palco>
<div class="tide">
<header class="tide__head">
<span class="tide__place">
<svg viewBox="0 0 18 18" aria-hidden="true"><path d="M1.500 7.500c2.500 0 2.500-3 5-3s2.500 3 5 3 2.500-3 5-3"/><path d="M1.500 12.500c2.500 0 2.500-3 5-3s2.500 3 5 3 2.500-3 5-3"/></svg>
Saltmere Bay
</span>
<span class="tide__day"><span class="tide__roll"><span data-day>Scroll through the day</span></span></span>
</header>
<div class="tide__read">
<div class="tide__now">
<span class="tide__time" data-time aria-live="off">00:00</span>
<span class="tide__trend">
<svg class="tide__arrow" data-arrow viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h10M9 4l4 4-4 4"/></svg>
<span class="tide__roll"><span data-trend>Rising</span></span>
</span>
</div>
<div class="tide__level">
<span class="tide__height"><b data-height>0.00</b><i>m</i></span>
<svg class="tide__glass" viewBox="0 0 56 72" aria-hidden="true">
<defs><clipPath id="glass"><rect x="1" y="1" width="54" height="70" rx="13"/></clipPath></defs>
<g clip-path="url(#glass)">
<path class="tide__water" data-water></path>
<path class="tide__skin" data-skin></path>
</g>
<g class="tide__staff"><path d="M8 14h7M8 25h4M8 36h7M8 47h4M8 58h7"/></g>
<rect class="tide__rim" x="1" y="1" width="54" height="70" rx="13"/>
</svg>
</div>
</div>
<div class="tide__chart" data-chart>
<svg data-svg aria-hidden="true">
<defs>
<linearGradient id="fill" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" style="stop-color: var(--accent); stop-opacity: 0.34"/>
<stop offset="1" style="stop-color: var(--accent); stop-opacity: 0"/>
</linearGradient>
<clipPath id="passed"><rect data-clip x="0" y="-20" width="0" height="2000"/></clipPath>
</defs>
<rect class="tide__night" data-night-a></rect>
<rect class="tide__night" data-night-b></rect>
<g class="tide__ticks" data-ticks></g>
<path class="tide__ghost" data-ghost></path>
<g clip-path="url(#passed)">
<path class="tide__area" data-area></path>
<path class="tide__line" data-line></path>
</g>
<g class="tide__caps" data-caps></g>
<line class="tide__drop" data-drop></line>
<circle class="tide__dot" data-dot r="5.500"></circle>
</svg>
<span class="tide__sun" data-sunrise></span>
<span class="tide__sun" data-sunset></span>
</div>
<ol class="tide__list" data-list aria-label="High and low water today"></ol>
</div>
</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.
20 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 “Tide chart” from Animorio and fit it into my siteTwo cosines: the wave of 12 hours and 25 minutes and a smaller one a day long, as in real harbours. Height, slope, high and low waters all come from there: the waters are found minute by minute where the slope changes sign.
One ScrollTrigger on the section five screens tall gives only the progress. The hour chases it with an exponential damping on the ticker, so even a notched wheel moves everything smoothly.
On every frame the hour has changed: the width of the clipPath that lights the curve, the dot, the time, the metres, the weight of the digits, the angle of the arrow (the arctangent of the slope), the state of the rows. Scrolling back puts everything right, because nothing is remembered.
The surface in the glass is a path of fifteen points: two sines for the ripple and a tilt that is a spring pushed by the speed of the hour. Scroll fast and the water lurches, then swings and settles.
The viewBox is as large as the box and the curve is rebuilt on resize by a ResizeObserver: lines keep their weight and labels are never stretched, at any width.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #63d6c6 | The colour of the water, the curve and the next water. |
HIGH_AT | script.js | 5.2 | The hour of the day’s first high water (hours, 0 to 12). |
RANGE | script.js | 1.7 | How many metres lie between low and high water. |
SUNRISE | script.js | 7.2 | The hour of sunrise: before it the chart is in shade. |
SUNSET | script.js | 16.6 | The hour of sunset: after it the chart is in shade again. |
RIDE | script.js | 1 | How long the page is: 1 = five screens for a whole day. |
LAG | script.js | 0.5 | How far the hour trails the scroll: 0 = glued, 1 = very soft. |
WAVE | script.js | 1 | How much the water in the glass moves: 0 = still, 2 = choppy. |
On the site of a seaside hotel, a marina, a surf or sailing school, a campsite on the coast: wherever the tide decides the day. With another formula, for any figure with a daily course: daylight, traffic, the price of energy, how busy a beach is.
The same page, by finger: the time and the glass at the top, the chart in the middle, the four waters in two columns. Every size also looks at the height of the screen, so the page fits whole even in a short window.
No smooth scrolling and no springs: the hour follows the scroll to the letter, the water in the glass stays flat and only changes level, words and rows change without motion.
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 7.8 KB; the libraries: GSAP + ScrollTrigger 45 KB, Lenis 5.3 KB.
Tested on 20 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.