Component · Menus and navigation

Tick ruler sidebar menu for a long read

by Informeek Studio 11 November 2026
Live Run the pointer down the chapter ticks

The prompt

Create a sidebar menu design for a long read in a fictional magazine called Longhand. The page is paper (#f4f1ea) with ink text (#1b1b1f). A 300px left sidebar holds the italic serif masthead, "Issue 31, the coast" and a chapter list styled as a ruler: each chapter is a 46px tall link with a 2px horizontal tick and a label like "01 Arrival", with two shorter minor ticks between chapters. As the pointer moves over the list, every tick grows by a gaussian of its distance to the pointer (sigma 46px): chapter ticks from 18px up to 64px, minor ticks from 8px to 34px, eased at 0.2 per frame, and nearby labels darken, like a ruler under a magnifier. When the pointer leaves, the active chapter keeps the long tick in vermilion (#e4572e). The reading column scrolls on its own: an uppercase label, the serif headline "The last keepers of the Skerry light", an SVG lighthouse at night and six short chapters. A 3px vermilion bar shows reading progress and scrollspy updates the active chapter. Clicking a tick scrolls smoothly to it. Under 860px the sidebar becomes a drawer opened by a "Chapters" button with aria-expanded, and a finger can scrub along the ticks and release on a chapter. Focus moves in, Tab loops, Escape and the scrim close it. Reduced motion skips the easing.

Written by Informeek Studio to recreate this design. Prompts are not deterministic, so running it again gives a similar result, not an identical one.

Use it in three steps

  1. Copy the prompt with the button above.
  2. Paste it into your AI site builder, or any AI chat that writes code.
  3. Make it yours by swapping the chapters for your own docs or article sections.

About this sidebar menu design

This sidebar menu design turns a table of contents into a ruler. Every chapter is a short horizontal tick with its number and title, and two smaller ticks sit between chapters. Run the pointer down the list and the ticks nearest to it stretch out while the far ones stay short, the same feel as a dock magnifying the icon under your finger, but quieter and more editorial.

It is also a working reading aid. The active chapter keeps a long vermilion tick, scrollspy moves it as you read, and a thin bar along the top fills with your progress. On phones the same list becomes a drawer, and you can scrub a finger along the ticks and let go on the chapter you want.

Why the prompt works

  • It gives the falloff as a formula, a gaussian with a 46 pixel spread, so the growth is smooth.
  • It sets every length for chapter and minor ticks, resting and stretched.
  • It ties the menu to reading, with scrollspy, progress and smooth jumps.
  • It turns the sidebar into a drawer on phones with a scrub gesture and full keyboard support.

Where to use it

Long reads, documentation, reports and course pages with five to ten sections.

The prompt is shared under CC BY 4.0. Reuse it freely, including commercially, with a credit linking back to this page.

Keep exploring

More prompts like this

See the collection →
Live
Component · Menus and navigation

Flowing hover menu for a dance school

Live
Component · Menus and navigation

Sphere menu for a board game café

Live
Component · Menus and navigation

Staggered hamburger menu for a climbing gym