Skip to content
animorio
IT
Back to the library

Rail tile menu

Transitions, Hover, ScrollGSAP, CSS onlyMediumCompressed weight: Demo 9.2 KBGSAP + ScrollTrigger + CustomEase 49 KBLenis 5.3 KBFreeDownload the zip

Tidewright, a made-up maker of solar sea drones, has a page of five coloured sections and a menu that is a thin rail on the right edge, cut into five segments as tall as their sections. A small arrow slides down the rail as you scroll and takes the colour of the section it sits on. Click and every segment widens, one after the other, into a tile with the section’s name and a line drawing that follows the pointer; pick a tile and the page sails there in 0.8 seconds while the tiles narrow back into the rail. Minimal style. From the menu 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>
<!--
  "Rail tile menu" 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 rail tile menu</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/newsreader@5.3.0/opsz.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 sea drones. Its page is five coloured sections, and its menu is a thin rail
       on the right edge cut into five segments, one per section, each as tall as its section. A small arrow slides
       down the rail as you scroll. Click the rail and every segment widens, one after the other, into a coloured tile
       with the name of its section; a little line drawing follows the pointer inside the tile. Pick a tile and the
       page sails there while the tiles narrow back into the rail. -->
  <main class="page" data-page>
    <section class="sec" id="fleet" data-sec data-name="Fleet" data-note="Three hulls, one brain" style="--h: 100; --bg: var(--sand); --ink: var(--ink-dark)">
      <p class="brand" data-in>
        <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 15.5h18l-2.6 3.4H5.6z M8 15.5V9.2l7.4 6.3 M8 9.2h1.6" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linejoin="round" stroke-linecap="round"/></svg>
        Tidewright
      </p>
      <div class="sec__body">
        <p class="eyebrow" data-in>Solar sea drones</p>
        <h1 class="title" data-in>Boats that never sleep.</h1>
        <p class="lede" data-in>Uncrewed, solar-electric hulls that hold their station at sea for months and report home every hour.</p>
      </div>
      <div class="horizon" aria-hidden="true">
        <span class="horizon__boat" data-boat><svg viewBox="0 0 46 24"><path d="M1 16 h44 l-6 6 h-32z M15 16 V2 l18 14 M15 6 h3"/></svg></span>
      </div>
    </section>

    <section class="sec" id="missions" data-sec data-name="Missions" data-note="Storms, reefs, open ocean" style="--h: 88; --bg: var(--sea); --ink: var(--ink-deep)">
      <div class="sec__body">
        <p class="eyebrow">Missions</p>
        <h2 class="title">Ninety days alone with the weather.</h2>
        <p class="lede">They follow storms, map reefs and listen to whales, then come back to the harbour on their own.</p>
        <p class="spec"><span>Endurance <b>90 days</b></span><span>Range <b>4,200 nm</b></span></p>
      </div>
    </section>

    <section class="sec" id="hull" data-sec data-name="Hull" data-note="Copper-tinted composite" style="--h: 100; --bg: var(--copper); --ink: var(--ink-rust)">
      <div class="sec__body">
        <p class="eyebrow">Hull</p>
        <h2 class="title">Four metres that right themselves.</h2>
        <p class="lede">A self-righting composite hull with a keel that folds flat for the truck ride to the coast.</p>
        <p class="spec"><span>Length <b>4.1 m</b></span><span>Weight <b>190 kg</b></span></p>
      </div>
    </section>

    <section class="sec" id="power" data-sec data-name="Power" data-note="Sun by day, cells by night" style="--h: 76; --bg: var(--rust); --ink: var(--ink-light)">
      <div class="sec__body">
        <p class="eyebrow">Power</p>
        <h2 class="title">Sun by day, cells by night.</h2>
        <p class="spec"><span>Panels <b>1.2 kW</b></span><span>Cruise <b>3.5 kn</b></span></p>
      </div>
    </section>

    <section class="sec" id="contact" data-sec data-name="Contact" data-note="San Pedro harbour" style="--h: 62; --bg: var(--deep); --ink: var(--ink-foam)">
      <div class="sec__body">
        <p class="eyebrow">Contact</p>
        <h2 class="title">Borrow one for a season.</h2>
        <a class="cta" href="#" data-cta><span class="cta__bg" aria-hidden="true"></span><span class="cta__txt">Talk to the fleet team</span></a>
      </div>
    </section>
  </main>

  <nav class="rail" data-rail aria-label="Sections">
    <span class="rail__tip" data-tip aria-hidden="true"></span>
    <div class="rail__col" data-col>
      <span class="rail__mark" data-mark aria-hidden="true">
        <svg viewBox="0 0 8 10"><path d="M0 0 L8 5 L0 10z"/></svg>
      </span>
      <span class="rail__line" data-line aria-hidden="true"></span>
    </div>
  </nav>

  <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/gsap@3.15.0/dist/CustomEase.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>

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.

45 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 “Rail tile menu” 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

The closed menu is a 6 pixel rail on the right edge: five segments, each of its section’s colour and as tall as the section really is on the page. A small arrow slides down the rail as you scroll, always at the right point, and changes colour on each section; the segment of the new section swells for a moment on a spring. Hovering the closed rail shows the segment’s name. Click and the rail opens: the segments widen one after the other into 300 pixel tiles, on the 0.25, 0.1, 0.25, 1 curve in 0.8 seconds, the corners round off, the name arrives slanted and straightens, and the thin line of the current point crosses the tile of the section you are in. Inside the tile under the pointer the line drawing follows it in 0.9 seconds and lands with a small kick, a little rotated and smaller. Pick a tile and the page sails there in 0.8 seconds on power1.inOut while the tiles narrow, from the last to the first. Esc or a click outside closes it. When nobody touches the page it tours itself.

How it works

The sections

The page sections, each with its colour in --bg and its ink in --ink.

The rail

The fixed rail on the right: one button per section with a flex-grow equal to the section’s height, so the segments keep the page’s proportions.

The arrow

Lenis for smooth scrolling, driven by the GSAP ticker; a top-to-bottom ScrollTrigger moves the arrow with quickTo and picks the active segment.

Opening

Opening: a timeline that widens the rail and the segments, 0.05 seconds apart, on CustomEase 0.25,0.1,0.25,1, and brings in the name, the note and the drawing.

The drawing that follows

The drawing follows the pointer with two 0.9 second power2.out quickTo calls, and on entering it kicks with a power2.inOut scale and rotation.

Closing and going

Closing: the same timeline backwards, from the last tile to the first, and the page sailing to the section with lenis.scrollTo in 0.8 seconds.

Values to change

NameFileDefaultWhat it changes
OPEN_TIMEscript.js0.8How long the tiles take to widen and narrow, in seconds (the site uses 0.8).
OPEN_STAGGERscript.js0.05Seconds between one tile and the next.
TILE_WIDTHscript.js300Width of the open tiles, in pixels (never more than the screen allows).
GO_TIMEscript.js0.8How long the page takes to reach the picked section, in seconds (the site uses 0.8).
FOLLOW_TIMEscript.js0.9How long the drawing takes to catch the pointer, in seconds (the site uses 0.9).
FOLLOW_RANGEscript.js22How far the drawing follows the pointer, in pixels.
RAIL_WIDTHscript.js6Width of the closed rail, in pixels.
AUTOPLAYscript.jstrueThe page tours itself when nobody touches it.

Try them in the Playground

When to use it

Long pages split into sections of different colours: the site of a product with several models, a landing page, a portfolio in chapters, the page of a tech company.

On phones

The same animation with adapted sizes: the open tiles take almost the whole width of the screen, text and drawings are measured on the height too, and a tap on the rail opens it; low tiles keep only the name.

With reduced motion

Nothing slides: the menu opens and closes as a fade with the tiles already wide, the arrow jumps to its place and the page reaches the section at once.

Pitfalls

  • The 0.25, 0.1, 0.25, 1 curve is CSS’s «ease»: in GSAP it must be registered with CustomEase, a string of four numbers alone is not enough.
  • The segments are measured from the real height of the sections and measured again on resize: with heights in vh, a window that changes height changes the proportions.
  • The arrow sits at (scroll + progress × window height) divided by the page height: so at the top it marks the first segment and at the bottom the last.

Libraries

GSAP 3.15.0, ScrollTrigger 3.15.0, CustomEase 3.15.0, Lenis 1.3.26, Newsreader (font variabile) 5.3.0, Geist Mono (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 9.2 KB; the libraries: GSAP + ScrollTrigger + CustomEase 49 KB, Lenis 5.3 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