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 & imagesWavy Seam Accordion
Stacked Drawer MenuBrowse all 182Horizontal Word Slider
  • 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

Wavy Seam 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

    Setup

    npm i gsap

    More like this

    • Accordion
    • Elastic
    • Canvas
    • WebGL

    Features.

    • A row of image panels; the one under the pointer springs open with a little overshoot
    • Every seam bows into a curve while it moves, pulls the picture next to it along, then wobbles flat
    • Pictures are cover-fitted to the open size, so they never rescale while panels open
    • Hover, keyboard focus and tap all open a panel; a tap on the open panel follows its link
    • Stacks into a column below 768px, with the same springs running vertically
    • One WebGL2 canvas for every panel, no dependencies, no build step
    • Draws only while something moves and sleeps off screen
    • Plain <img> fallback without WebGL2 or when a picture can't reach the canvas
    • Respects prefers-reduced-motion: sizes snap, seams stay straight

    How to get it right.

    Host the pictures with CORS

    The canvas can only draw pictures it is allowed to read. Same-origin paths always work; a picture on another host must be served with Access-Control-Allow-Origin. Without it the accordion still works on the plain images, just with straight seams.

    Size the pictures for the open panel

    Each picture is cover-fitted to the open panel, not the closed one. Landscape pictures around 1600–1920px wide are plenty for a full-width row; the canvas scales them down to what it needs.

    Adding a meta line

    It ships with titles only. Put <span class="wac_meta"> after .wac_title, or pass meta on an item in React.

    Keep it to a handful of panels

    Up to 8 panels fit the canvas. Five or six give the open panel room to breathe at the default open-scale; with more panels, lower it a little so closed panels stay readable as slivers.

    Tune the wobble with bend

    data-au-bend sets how hard the seams react to speed. 1.6 is lively; 0.6–1 is calmer for a portfolio, 0 turns the effect into a clean springy accordion.

    Retheme with variables

    --wac-gap and --wac-radius set the spacing and corners; the canvas reads them back, so both layers always match. --wac-fg colours the labels.

    Variations.

    • Wobbly — the default: bend 1.6, drag 0.6
    • Calm — data-au-bend="0.8", data-au-drag="0.4" for a softer ripple
    • Straight — data-au-bend="0": a spring accordion with no curve
    • Showcase — data-au-open-scale="9", data-au-dim="0.25" so the open panel dominates
    • Seamless — --wac-gap: 0 and --wac-radius: 0 for one continuous strip

    Where it fits.

    • Selected work on a studio home page — one panel per project, linking to the case study
    • Collections in a shop — a panel per range with its name and season
    • Team or services strip — portraits or moods that open on hover
    • Case study chapter — a row of stills from a single project

    Frequently asked.

    The canvas couldn't read a picture, so the plain images are showing. Serve the pictures from your own domain or with CORS headers. It also happens without WebGL2, and with reduced motion turned on.

    Yes — data-au-start="3" opens the third panel at load. Panels count from 1.

    Up to 8. Add or remove [data-wac-item] entries; the sizes and seams adjust on their own.

    No. The last panel opened stays open until another one is hovered, focused or tapped, so the row never collapses to equal widths.

    No. The springs run on their own loop and the canvas is plain WebGL2.

    Related components.

    Pro

    File Drawer Cards

    Hover

    Pro

    Capsule Image Hero

    Click

    Pro

    Depth Fly-Through Hero

    Load