Skip to content
animorio
IT
Back to the library

Tentacle transition

Transitions, Backgrounds, HoverGSAP, CanvasMediumCompressed weight: Demo 6.7 KBGSAP 28 KBFreeDownload the zip

The opening of a made-up motion design studio, Undertow: soft tentacles in three layers of close tones unfurl from behind the headline, sway as if under water, curl their tips and grow until they cover the whole screen in their colour. That colour becomes the next page's background, while the old headline floats up and away and the new one rises letter by letter. The tentacles lean towards the pointer; at rest their tips just peek out from behind the headline, in the colour of the page to come.

The code

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>
<!--
  "Tentacle transition" 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>The tentacles that unfurl from behind the headline and cover the screen</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/fraunces@5.3.0/full-italic.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="stage" data-stage>
    <!-- the opening of a made-up motion studio, Undertow. Soft tentacles unfurl from behind the headline, curl at the
         tips and sway as if under water, then grow until they cover the screen in their colour, which becomes the
         next page; the next headline rises on top. They lean towards the pointer -->
    <canvas class="sea" data-sea aria-hidden="true"></canvas>
    <div class="grain" aria-hidden="true"></div>

    <header class="top">
      <span class="brand">
        <svg class="brand__mark" viewBox="0 0 24 24" aria-hidden="true">
          <path d="M3 14c3-4 6-4 9 0s6 4 9 0" />
          <path d="M3 19c3-4 6-4 9 0s6 4 9 0" />
        </svg>
        <span class="brand__name">Undertow</span>
      </span>
      <span class="top__page" aria-live="polite"><span class="top__word" data-count>Studio</span></span>
    </header>

    <section class="hero" aria-live="polite">
      <p class="hero__eyebrow" data-eyebrow>A motion studio</p>
      <h1 class="hero__title" data-title>Make waves, <em>quietly.</em></h1>
    </section>

    <button class="dive" type="button" data-dive>
      <span class="dive__label">Dive in</span>
      <svg class="dive__arrow" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 3v10M3.5 8.5 8 13l4.5-4.5" /></svg>
    </button>
  </main>
  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
  <script src="script.js"></script>
</body>
</html>

Playground

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

Or ask your AI assistant for it

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 “Tentacle transition” from Animorio and fit it into my site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

On a cream background with fine grain sits Undertow's opening: at the top the mark with two drawn waves and the page name, «Studio», which rolls away at each opening to make room for the next («Work», «Process», «Contact»), in the middle a large wide headline, «Make waves, quietly.», with the last word in a serif italic, and at the bottom the glass pill «Dive in». The tips of petrol green tentacles just peek out from behind the headline, swaying slowly. On click (or by themselves after a few seconds) they all come out: three layers of tentacles in close tones, the lightest at the back, grow longer and wider from points spread around the headline, with a wave running down each and the tips curling and straightening as they grow. Each layer has a soft shadow and a thread of light along one side. The old headline slides up and away letter by letter; once the tentacles cover everything, their colour becomes the background, the mark and the pill change ink and the new headline, «Below the surface.», rises from its words. The next time the tentacles are cream and the page turns light again. The tentacles always lean towards the pointer.

How it works

A tapering ribbon

Each tentacle is a spine of 34 steps: at each step the angle is the starting one plus a wave (a sine running down the spine over time), plus the curl of the tip (growing with the cube of the distance from the base) and plus the lean towards the pointer. The width shrinks from base to tip; the two edges are closed with quadratic curves between midpoints, so the ribbon is soft and has no corners.

Three layers of close tones

All the tentacles of a layer go into a single Path2D, filled once with a soft shadow; on top, a light thread on one side catches the light. The layers start a tenth apart: the lightest at the back, the next page's colour in front.

Covering everything

A single number, from 0 to 1 in OPEN seconds on power2.in, lengthens the tentacles (up to almost the screen diagonal) and widens them with the square. In the last stretch a circle of the same colour grows from the middle of the headline, so no corner is left uncovered; at 1 the colour becomes the page background and the tentacles disappear unseen.

The headlines

The headline is split into words with hidden overflow and into letters: the old one leaves with yPercent to -110 on power3.in, the new one rises from 115 to 0 on expo.out, three hundredths of a second between letters.

The pointer

For each tentacle the angle towards the pointer, relative to its direction, is measured and added, clamped, growing with the square towards the tip. Without a pointer an invisible point drifts slowly around the screen and acts as a current.

Values to change

NameFileDefaultWhat it changes
OPENscript.js2.8Seconds for the tentacles to cover the screen.
TENTACLESscript.js9Tentacles in each layer.
LAYERSscript.js3Layers of close tones, from back to front.
SWAYscript.js0.32How much the water sways them, in radians.
CURLscript.js2.4How much the tips curl, in radians.
BENDscript.js0.55How much they lean towards the pointer.
HOLDscript.js2.6Left alone, seconds on each page before the next opening.
GRAINscript.js0.07The grain on top, 0 for none.
LOOPscript.jstrueLeft alone, the openings keep coming.

Try them in the Playground

When to use it

For the opening or page change of a creative studio, an aquarium, a brand tied to the sea or any site that wants a soft, organic entrance instead of a curtain: wherever the headline has to make room for a new section with one full gesture.

On phones

The same transition with adapted sizes: the tentacles are measured on the screen diagonal, the headline also on the height, and a tap starts the opening.

With reduced motion

No tentacles and no rising letters: at each opening the headline fades, the background changes colour and the new headline fades in.

Pitfalls

  • Filling each tentacle on its own with a shadow costs too much: all of a layer go into one Path2D and are filled once.
  • Only lengthening the tentacles leaves uncovered wedges between them in the corners: in the last stretch a circle of the same colour has to grow from the middle.
  • Tips fully curled while the tentacle becomes huge make odd loops: the curl eases off as it grows.
  • The starting points depend on the headline: they must be recomputed on resize and for every new headline.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0, Fraunces (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 6.7 KB; the libraries: GSAP 28 KB.

Testing

Tested on 8 November 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

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.

All animations