Skip to content
animorio
IT
Back to the library

Hull spec tabs

Text, TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 7.1 KBGSAP 28 KBFreeDownload the zip

Tidewright, a made-up maker of small solar marine drones, puts its three hulls behind three tabs: on every change the words leave to the left leaning a little and come back from the right leaning the other way, the theme of the new hull fades over the old one, the spec numbers roll and a real photo of the boat wipes in from the left over the old one. Minimal style. From the product switcher of the Seasats site, Awwwards Site of the Day on 8/9/2026.

Rebuilt from scratch studying seasats.com by Raw Materials, Owls Department: the idea is theirs; code, copy and images are ours. Read how it’s made

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>
<!--
  "Hull spec tabs" 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>Tidewright, the fleet</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/archivo@5.3.0/wdth.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/geist-mono@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- Tidewright, a made-up maker of solar marine drones. Three hulls, three tabs: on every change the words slide out
       leaning a little, come back leaning the other way, the theme of the hull fades over the old one, the numbers roll
       and a field photo of the hull wipes in over the old one. When nobody touches the page the tabs change by themselves. -->
  <main class="page" data-page>
    <div class="themes" aria-hidden="true">
      <span class="theme" data-theme style="--a: var(--mist-a); --b: var(--mist-b); --c: var(--mist-c)"></span>
      <span class="theme" data-theme style="--a: var(--copper-a); --b: var(--copper-b); --c: var(--copper-c)"></span>
      <span class="theme" data-theme style="--a: var(--patina-a); --b: var(--patina-b); --c: var(--patina-c)"></span>
      <span class="grain"></span>
    </div>

    <header class="bar">
      <p class="brand" data-in>
        <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M2 13.5c2.2 0 2.2-1.6 4-1.6s1.8 1.6 4 1.6 2.2-1.6 4-1.6 1.8 1.6 4 1.6M5 10.2 10 3l5 7.2z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/></svg>
        Tidewright
      </p>
      <nav class="tabs" data-tabs aria-label="Choose a hull" role="tablist" data-in>
        <span class="tabs__pill" data-pill aria-hidden="true"></span>
        <button class="tab" type="button" role="tab" data-tab aria-selected="true">Petrel</button>
        <button class="tab" type="button" role="tab" data-tab aria-selected="false">Skua</button>
        <button class="tab" type="button" role="tab" data-tab aria-selected="false">Gannet</button>
      </nav>
    </header>

    <section class="hero">
      <div class="lead">
        <p class="eyebrow"><span class="mask"><span data-swap data-f="kind">Solar survey vessel</span></span></p>
        <h1 class="name" aria-live="polite"><span class="mask"><span class="name__t" data-swap data-title data-f="name">Petrel</span></span></h1>
        <p class="line"><span class="mask"><span data-swap data-f="line">Fits in a van, maps a bay before the coffee cools.</span></span></p>
      </div>

      <dl class="specs">
        <div class="spec"><dt>Length</dt><dd><span data-swap><b data-num="len">1.4</b><i>m</i></span></dd></div>
        <div class="spec"><dt>Range</dt><dd><span data-swap><b data-num="range">60</b><i>nm</i></span></dd></div>
        <div class="spec"><dt>Payload</dt><dd><span data-swap><b data-num="load">10</b><i>kg</i></span></dd></div>
        <div class="spec"><dt>Endurance</dt><dd><span data-swap><b data-num="days">3</b><i>days</i></span></dd></div>
      </dl>
    </section>

    <figure class="hull">
      <div class="hull__frame" data-frame>
        <div class="shot" data-shot style="--pos: 50% 80%"><div class="shot__in" data-burns><img src="petrel.webp" alt="A small white autonomous boat with a mast and a camera, a drone hovering above it on a lake" width="1024" height="682" decoding="async"></div></div>
        <div class="shot" data-shot style="--pos: 44% 60%"><div class="shot__in" data-burns><img src="skua.webp" alt="A small dark autonomous boat with a red frame between red and green buoys" width="1024" height="682" decoding="async"></div></div>
        <div class="shot" data-shot style="--pos: 38% 42%"><div class="shot__in" data-burns><img src="gannet.webp" alt="A small yellow autonomous catamaran with a tall mast, seen through the reeds" width="1024" height="682" decoding="async"></div></div>
      </div>
      <figcaption class="hull__cap"><span data-swap data-f="cap">Field photo</span></figcaption>
    </figure>
  </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.

37 values to change

Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI

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 “Hull spec tabs” 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

At the top three pill tabs, Petrel, Skua and Gannet, with a light pill that slides under the chosen one on a short spring. Below, the big name of the hull, what it does, a line, and four specs in a mono type: length, range in nautical miles, payload and days at sea. At the bottom a frame with rounded corners holding a real photo of the boat on a lake: the white one with the mast and a drone above it, the red one between the buoys, the yellow catamaran behind the reeds. On change the words leave to the left leaning 2 degrees and come back from 32 pixels to the right leaning 4, one after the other; the theme of the new hull (mist, copper, patina) fades over the old one, which leaves a quarter of a second later; the colour of the type follows the theme, the numbers roll and the new photo wipes in from the left, settling from a slight zoom, while the old one drifts a touch underneath. At rest the photo moves very slowly closer. If nobody touches, the hulls change by themselves.

How it works

Leaning out

Every text that changes has data-swap: a gsap.to with x −16, skewX 2 and opacity 0, 0.4 seconds in power1.in, 0.06 seconds apart, as on the site.

The new content

Halfway, a call in the timeline writes the name, kind and line of the new hull and starts the numbers: a tween on an object of values that rewrites the digits on every update.

Back from the other side

A fromTo from x 32, skewX 4 and opacity 0 to zero, 1.6 seconds in power4.out, 0.12 seconds apart: the way back is long and brakes softly, the way out is short.

Themes with no gap

Three gradient layers stacked: the new one goes on top with z-index and rises to opacity 1 in 0.75 seconds sine.inOut, the old one drops to 0 in the same time but 0.25 seconds later. The colour variables of the type change with them.

The wipe and the photos

The three photos are stacked in a frame with overflow hidden and 14 pixel corners, each with object-fit cover and its own object-position. The new one goes on top with z-index and its clip-path goes from inset(0 100% 0 0) to inset(0) in 1.2 seconds power3.inOut, 0.3 seconds after the words, while the image settles from scale 1.08 to 1 in 1.6 seconds power3.out; the old one underneath drifts 3% and is hidden once covered. At rest an endless back-and-forth tween takes the photo from scale 1 to 1.04 in 9 seconds.

Values to change

NameFileDefaultWhat it changes
OUT_Xscript.js-16How far the words go out, in px (the site uses −16).
OUT_SKEWscript.js2How much they lean going out, in degrees (the site uses 2).
IN_Xscript.js32Where the words come back from, in px (the site uses 32).
IN_SKEWscript.js4How much they lean coming back, in degrees (the site uses 4).
IN_TIMEscript.js1.6Seconds of the way back (the site uses 1.6).
FADEscript.js0.75Seconds of the theme fade (the site uses 0.75).
TOURscript.js4.4Seconds on each hull when nobody touches.
WIPEscript.js1.2Seconds of the wipe that brings in the new photo.

Try them in the Playground

When to use it

For the page of a product that comes in several models or sizes (vehicles, machines, plans, tools): one model at a time, with specs that read well, and a change you feel but that never gets in the way.

On phones

On a phone the tabs go under the brand, the name is sized on the height too, the specs sit in two columns and the photo frame is lower, with the boat always in shot. The tabs are tapped, and the tour starts again after a few seconds.

With reduced motion

No moves or skews: the words change with a fade, the numbers arrive at their value, the new photo fades in with no wipe or zoom, and the theme fades as usual.

Pitfalls

  • The leaning text sits inside a mask with a little room above and below (padding and negative margin), otherwise the skew clips the ascenders and descenders.
  • The new theme goes above the old one with z-index before it starts: with the DOM order, going back the new one would fade underneath and you would see a jump.
  • The pill under the tabs is measured in pixels from the real tabs and measured again on resize and once the fonts are in, because the words change width.
  • The wipe sits on the holder, the slow drift on its child and the settle on the image: three elements, so GSAP never writes two transforms on the same one and the clip-path does not move with the scale.

Libraries

GSAP 3.15.0, Archivo (font variabile) 5.3.0, Geist Mono (font variabile) 5.3.0.

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

Testing

Tested on 26 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