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 & imagesExpanding Bento Grid
Masked Slide-Up RevealBrowse all 182Drifting Box Rows
  • 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

Expanding Bento 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
  • SplitText

Setup

npm i gsapregisterPlugin(Flip, CustomEase, SplitText)

More like this

  • Card
  • Grid
  • Expand
  • Stagger
  • Split text
  • Flip

Features.

  • Five tiles on a bento grid: one big 2×2 focus slot and four mixed shapes (wide, portrait, portrait, wide)
  • Click a small tile and it grows into the focus slot while the old focus shrinks back and the rest re-settle
  • Tiles that travel further start a little later, so the grid settles in a ripple rather than all at once
  • The old focus's title and copy lift out; the new one's title rises in as it lands, then its description line by line
  • Small tiles show a one-word label that rolls out as the tile takes focus and back in when it leaves
  • Click again mid-move and it picks up from wherever every tile is, no snapping
  • A soft light veil on small tiles under the mouse
  • Below 768px the focus spans the full width on top and the four small tiles stack under it
  • Every tile is a real <button> with aria-pressed, so keyboard and screen readers work
  • Respects prefers-reduced-motion: every move is instant and there's no hover veil
  • GSAP with Flip, SplitText and CustomEase

How to get it right.

Pick images that crop well

Each picture is shown in four different shapes as it moves round the grid: big square-ish, wide, portrait and wide again. Keep the subject near the centre so it survives every crop.

Keep the labels to one word

A small tile only has room for a short label at the bottom. The same word becomes the big title in focus, so one strong word per tile reads best.

One short line of copy

The description sits at the bottom of the focus tile over a shade, and the script needs one on every tile. A few words is enough; past three lines it starts to cover the picture.

Leave the grid its height

The grid is 2:1 and caps its height at --bnf-height (the screen minus 5em), so it always fits one screen. In a shorter container, lower --bnf-height.

Variations.

  • Default — 0.7s moves with a 0.08s travel delay
  • Snappy — data-au-duration="0.4" and data-au-stagger="0.04"
  • Slow ripple — data-au-duration="1" and data-au-stagger="0.18": far tiles trail clearly behind
  • No hover — data-au-veil="0"
  • Your colours — override --bnf-tile, --bnf-fg, --bnf-copy, --bnf-veil, --bnf-scrim and --bnf-focus on the grid

Where it fits.

  • Project or case study pages — five stages, views or details of one piece of work
  • Product features — one feature in focus with its line of copy, the rest a click away
  • Team or studio intros — five people or places, each with a short note
  • Portfolio home — a single screen that shows five projects at once

Frequently asked.

No. The grid has exactly five slots (the focus and four around it). With any other count the script logs an error and does nothing.

Whichever has data-bnf-slot="hero" in the markup. Give the others a, b, c and d; the script hands them out in page order after each click.

The script splits the copy into lines again once your web font has loaded. If your font loads very late, call window.au.BentoFocus.refresh() after it does.

Yes. Tab to a tile and press Enter or Space: it's a button. The focused tile reports aria-pressed="true".

Each [data-au-bento-focus] is its own instance. window.au.BentoFocus.refresh() picks up ones added later.

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

Related components.

Pro

File Drawer Cards

Hover

Pro

Capsule Image Hero

Click

Pro

Depth Fly-Through Hero

Load