
The elastic button
Buttons, Hover, Text
The watermark settings of a document about to be exported, in a card on white: the page preview with “DRAFT” on it, a grid of nine cells to choose where it goes and three texts to pick from. Tapping a cell flies the watermark to that corner on a spring, small and straight; at the centre it is large and tilted again. Changing the text rolls the word and the watermark settles back in its place.
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>
<!--
"Document watermark" 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>Document watermark</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 watermark of a document about to be exported: the page preview, the grid of nine positions
moving the mark on a spring, and the choice of its text -->
<section class="wm" data-wm aria-label="Watermark">
<header class="wm__head"><strong>Watermark</strong><span class="wm__where"><span data-outwhere>Centre</span></span></header>
<div class="wm__view" aria-hidden="true">
<div class="wm__page" data-page>
<i class="wm__l wm__l--title"></i><i class="wm__l"></i><i class="wm__l"></i><i class="wm__l wm__l--short"></i>
<div class="wm__cols"><span class="wm__fig"><i></i><i></i><i></i><i></i></span><span class="wm__txt"><i class="wm__l"></i><i class="wm__l"></i><i class="wm__l"></i><i class="wm__l wm__l--short"></i></span></div>
<span class="wm__mark" data-mark><span class="wm__clip"><span data-outmark>DRAFT</span></span></span>
</div>
</div>
<div class="wm__set">
<div class="wm__grid" role="group" aria-label="Position" data-grid></div>
<div class="wm__words" role="group" aria-label="Text" data-words>
<i class="wm__pick" data-pick aria-hidden="true"></i>
<button type="button" class="wm__word" data-word="DRAFT"><span>Draft</span></button>
<button type="button" class="wm__word" data-word="CONFIDENTIAL"><span>Confidential</span></button>
<button type="button" class="wm__word" data-word="SAMPLE"><span>Sample</span></button>
</div>
</div>
</section>
<span class="live" aria-live="polite" data-live></span>
<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.
16 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 “Document watermark” from Animorio and fit it into my siteThe cells are nine buttons in a grid, read row by row. For each one the middle of the watermark is computed: against the margin horizontally and vertically, or at the centre of the page.
The watermark is a single element, placed with its middle on the anchor: position, scale and rotation animate together on a spring.
In the middle cell the watermark is large and tilted, like a stamp across the page; at the edges it is small and straight. The scale at the centre never exceeds the page’s width.
When the word changes the watermark widens or narrows: as soon as the new word is in, the anchor is recomputed and the watermark goes back to it.
| Name | File | Default | What it changes |
|---|---|---|---|
MARK | script.js | #d9432f | The colour of the watermark. |
FADE | script.js | 0.34 | How visible the watermark is. |
TILT | script.js | 24 | How many degrees it is tilted when at the centre of the page. |
BIG | script.js | 2.6 | How many times larger it is at the centre than at the edges. |
SPRING | script.js | 1 | How much the watermark bounces when it changes place. |
LOOP | script.js | true | Left alone, the demo’s pointer tries positions and texts and then starts again. |
In the export dialog of a document editor, a signing app or a PDF tool, and in the settings of anyone delivering photos or designs as proofs; the same grid of nine cells carries the alignment of a logo on an image, the position of a notification on screen or the anchor of a crop.
The card is at most 348 pixels wide and about 320 tall, and narrows with the screen: the page takes the width it finds and the anchors are recomputed. The grid’s cells are about 27 pixels a side, the three texts 30 tall.
No flights and no springs: the watermark is in its new position at once, with its size and tilt, and the word changes in one step. The demo’s pointer does not start.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 5.4 KB; the libraries: GSAP 28 KB.
Tested on 30 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.