Skip to content
Components101 / 118

Hover Menu

Big editorial navigation. The row you point at rolls its letters over into an italic serif in its own colour while the rest dim, a hairline fills and the arrow swings into a disc. A photograph rides your cursor on a soft spring, drawn on the GPU: it bends like a sheet against your motion, stretches with speed and melts from one picture into the next as you move down the list.

GSAPthree.jsReal linksKeyboard friendly60fpsReduced-motion safe

Tweak

LIVE

Row colours

#4a74ff
#ff6b3d
#b27cff
#ffc53d

Image

240px
1.00

Props

8 props
  • itemsHoverMenuItem[]
    Rows: label, meta, href, image (the picture that follows the cursor) and accent (the row's colour).default Work, Studio, Journal, Contact
  • accentstring
    Colour for rows without their own accent.default "#4a74ff"
  • imageWidthnumber
    Width of the following image, px (4:5).default 240
  • tiltnumber
    How much the image bends and leans with your movement, 0 to 2.default 1
  • fontstring
    Font of the rows at rest (inherits by default).
  • hoverFontstring
    Font the letters roll into, shown in italic.default "Instrument Serif", Georgia
  • onSelect(item, index) => boolean | void
    Called on click; return false to cancel navigation.
  • classNamestring
    Width and spacing of the menu.