Component · Menus and navigation

Sliding pill navbar for a coworking space

by Informeek Studio 11 November 2026
Live Click the links, then shrink to a phone

The prompt

Build a navbar animation for a fictional coworking space called Common Hours on a near black page (#141414). The header holds a round cream logo with two clock hands that spin when hovered, a centred dark pill (#222222) of five links, Spaces, Day pass, Events, Members and Find us, and an orange (#ff7a3d) "Book a desk" pill. Under the active link sits a cream (#f5f1ea) pill that slides like an inchworm: when it moves right its right edge leads at 0.32 per frame and its left edge follows at 0.14, the reverse when it moves left, so it stretches and then catches up. A faint 8% white pill follows the hovered or focused link with a springy ease. Each link label rolls up on hover to reveal a copy of itself over 450ms. Below, a mint "23 desks free right now" badge, the headline "A desk, a door that shuts and good coffee" with the last words in orange and three tiles, one lilac (#c3b5ff) Day pass tile with "£16". Under 900px the links fold into a "Menu" pill; tapping it scales a rounded sheet out of the button corner with a slight overshoot and staggers in pill links with small details, the active one cream, plus an orange booking pill. Use aria-current, aria-expanded, focus in, Tab loop, Escape and scrim close. Reduced motion removes the rolls.

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 renaming the links and swapping the orange for your own accent.

About this navbar animation

This navbar animation gives the active link a cream pill that moves like an inchworm. When you pick a link further along, the leading edge of the pill races ahead and the trailing edge follows a moment later, so the pill stretches and then gathers itself up. It reads as playful but stays tidy, because it always settles exactly behind the label.

Two smaller touches finish it. A faint pill follows wherever you hover or tab, and every label rolls up to reveal a copy of itself, a cheap trick that feels expensive. On narrow screens the whole bar folds into a Menu pill that grows into a sheet of large pill links, each with a small detail such as the price of a day pass.

Why the prompt works

  • It gives two speeds for the two edges, which is what creates the inchworm stretch.
  • It separates active and hover, a solid pill and a faint one.
  • It describes the phone sheet and how it grows out of the button corner.
  • It covers the details, aria-current, focus and reduced motion.

Where to use it

Studios, shared workspaces, agencies and product sites with four to six top links and one main call to action.

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

Sphere menu for a board game café

Live
Component · Menus and navigation

Staggered hamburger menu for a climbing gym

Live
Component · Menus and navigation

Card mega menu for a cargo bike maker