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 & imagesFilterable Grid
Fill Wave Text RevealBrowse all 182Unfolding Letters
  • 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

Filterable Grid

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
  • Flip
  • CustomEase

Setup

npm i gsapregisterPlugin(Flip, CustomEase)

More like this

  • Card
  • List
  • Grid
  • Flip

Features.

  • A grid of image cards with a filter bar: pick a category and only its cards stay
  • Staying cards glide to their new spots, the nearest first; leaving cards fade out and arriving ones settle in from a slight zoom
  • One pill slides between the filter buttons, and each button shows how many cards it holds
  • A big "shown" count rolls its digits to the new number
  • A grid / list toggle morphs every card between a tile and a row, corners, padding and all
  • Hover a tile and its image zooms while a line of description opens under the name; on touch screens the description is always open
  • Screen readers hear "Showing 2 of 8 images" after each filter
  • 4 columns by default (an option), 3 at 991px and below, 2 on phones; the toggle rides along the bottom of the screen while the grid is in view
  • Respects prefers-reduced-motion: every change is instant
  • GSAP with Flip and CustomEase

How to get it right.

Three to six categories

The filter bar is one row of pills on desktop and wraps on phones. A handful of short labels reads at a glance; long lists of filters belong in a dropdown.

Use 4:5 images

Every card's media box is 4:5 in both views, so the crop never changes when it morphs. Portraits with the face near the top crop best.

Keep descriptions to one line

The description opens under the name on hover and sits beside the thumbnail in the list view (clamped to two lines on phones). A few words each.

Match categories exactly

A card shows under a filter when its data-ffl-category equals the button's data-ffl-filter. all is reserved for the button that shows everything.

Variations.

  • Default — grid view, 4 columns, 0.36s moves
  • List first — data-au-view="list"
  • Wide grid — data-au-columns="5" or "6" for smaller tiles
  • Slow and smooth — data-au-duration="0.7": the view morph then takes 1.4s
  • Your colours — override the --ffl-* variables on the section

Where it fits.

  • Portfolios — work filtered by discipline, with a compact list view
  • Shops and catalogues — products by type, the count telling people what's left
  • Archives and journals — articles by topic
  • Team pages — people by studio or role

Frequently asked.

Add a filter button with data-ffl-filter="your-key" (copy one, including its data-ffl-total span), then give cards data-ffl-category="your-key". The totals fill themselves in.

It's padded to two digits so it doesn't jump in width. Up to 99 cards roll cleanly.

Yes. Each card is an <a>; give it a real href. Cards ignore clicks only while the view is morphing.

At the end of the section, sticky to the bottom-right of the screen while the section is in view.

Yes: gsap, Flip and CustomEase, loaded before the script.

Related components.

Pro

File Drawer Cards

Hover

Pro

Capsule Image Hero

Click

Pro

Depth Fly-Through Hero

Load