Platform
VaultVault
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
ButtonsPart of ProButtons
IconsPart of ProIcons
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
SavedPart of ProSaved
Support
DocumentationDocumentation
MCP serverMCP server
SettingsSettings
VaultGallery & imagesHover Image Accordion
Pluckable Divider ListBrowse all 182Fill Wave Text Reveal
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
Sign inSign in

Start free. The code for 15 components, no card needed.

Get 15 free

Hover Image Accordion

This one is locked. Become a member to open the code for it and the rest of the Vault.

See plansTry the 15 free ones

What you'll need.

Install

  • gsap
  • CustomEase

Setup

npm i gsapregisterPlugin(CustomEase)

More like this

  • Accordion
  • Expand

Features.

  • A full-height row of tall image panels, edge to edge
  • Hover a panel and it grows wide while its neighbours shrink along a smooth falloff, so sweeping across the strip moves like one wave
  • The open image settles from a zoom while the others pan slightly away from it
  • The other panels dim and blur, more the further they are from the open one
  • The open panel's title rises in once it's 70% open, over a soft scrim
  • Each closed panel shows its name as a vertical word, which slides away when the panel opens
  • Phones (767px and below): the panels become full-width rows and a tap opens one
  • Keyboard: every panel is a focusable button; arrow keys move along the strip, Enter or Space toggles
  • Respects prefers-reduced-motion: everything jumps
  • GSAP and CustomEase

How to get it right.

Four to seven panels

Five is the demo. Fewer and the closed panels get wide enough to lose the strip look; more and the closed ones get too thin for their side word.

Short titles

The title is set at 3.15em on one line inside the open panel. Keep it to a word or two. For more, add <p class="exs_label"><span data-exs-label>…</span></p> after it in .exs_text (React: label on the item); it rises in with the title.

Images that crop well both ways

Panels are tall on desktop and wide on phones, and every image is cropped with object-fit: cover. Square images with a centred subject work in both.

Keep the blur subtle

4px is enough to pull focus. Above about 8 the closed panels turn to mush and the side words get hard to read.

Variations.

  • Default — opens to 4× (flex-grow), 1.25 zoom, 4px blur
  • Wide open — data-au-open="6" so the open panel takes most of the row
  • No blur — data-au-blur="0": the others only dim
  • Still images — data-au-zoom="1": no zoom on open
  • Your colours — override --exs-bg, --exs-text, --exs-text-2 and --exs-focus on .exs_strip

Where it fits.

  • Collections — a series of images that each deserve a moment, like this demo
  • Services — one panel per service with a picture and a line
  • Team or artists — portraits that open to a name and role
  • Destinations or venues — places side by side

Frequently asked.

The panel itself is a button that opens it. Put a link inside .exs_text and give that link pointer-events: auto; it shows once the panel is open.

The section is 100svh. Override height on .exs_strip for a shorter strip; the panels fill whatever height it has.

A tap opens a panel and a second tap closes it. On phones the panels are stacked rows, so the open one grows taller.

Crossing the 767px breakpoint changes the strip from columns to rows, and the image pan changes axis, so it resets.

No. Load gsap and CustomEase before the script.

Related components.

Pro

File Drawer Cards

Hover

Pro

Capsule Image Hero

Click

Pro

Depth Fly-Through Hero

Load