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
VaultUI componentsSliding Notch Cards
Pill to Panel TabsBrowse all 182Rolling Odometer
  • 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

Sliding Notch Cards

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

Setup

npm i gsap

More like this

  • Card
  • SVG

Features.

  • A soft notch bitten out of one edge of each image, with the card colour showing through it
  • On hover or keyboard focus the notch slides along its edge while the image zooms in a touch; both go back on leave
  • Pick the edge per card (top, right, bottom or left) so a row of cards doesn't repeat itself
  • The notch is a real SVG clip-path, redrawn each frame from one number, so it stays crisp at any size
  • The title link covers the whole card, with a focus ring for keyboard users
  • Each new hover takes over from the last, so quick in-and-out never stutters
  • Three columns that stack into one at 767px and below
  • Respects prefers-reduced-motion: the notch jumps and the image doesn't zoom
  • GSAP only, plain CSS for the look

How to get it right.

Mix the edges

The demo puts the notch on the top, left and right of its three cards. Vary them along a row; the same edge on every card looks like a template.

Keep the zoom small

1.06 is enough to feel alive. Past 1.1 the image starts to crop noticeably inside its frame.

Leave something to show through

The notch reveals the card colour (--nch-card). Keep it in contrast with the image's edges, or the notch disappears.

Adding a line of text

Cards ship with a title only. Add <p class="nch_text"> after the title, or pass text in React. Keep it to one sentence.

Crop for the frame

The image frame is 346:325, close to square. Pictures are cropped to it with object-fit: cover, so keep the subject away from the edges.

Variations.

  • Default — pale stone cards, ink text, 0.55s slide, 1.06 zoom
  • No zoom — data-au-zoom="1": the notch moves on its own
  • Slow — data-au-duration="0.9" for a lazier glide
  • Notch on the bottom — data-nch-edge="bottom" on a card puts the bite just above the title
  • Your colours — override --nch-card, --nch-text, --nch-media and --nch-focus on .nch_grid

Where it fits.

  • Blog or journal index — three latest posts, like this demo
  • Case study teasers — a row of projects at the end of a page
  • Feature cards — services or product highlights with a picture each
  • Event listings — one card per talk or exhibition

Frequently asked.

Yes. Every [data-nch-card] inside the root gets its own notch. The grid is three columns; for another count, change grid-template-columns on .nch_grid.

The script builds one SVG clipPath per card with its own id, so several grids on one page never clash. Without JavaScript the images show uncut.

Set font-size on .nch_grid. Padding, radius and type are in em; the cards fill their columns.

A tap starts the hover through the browser's emulated mouse events, and the link follows. The effect is mainly a pointer and keyboard one.

No. Load gsap before the script; nothing else is needed.

Related components.

Pro

Image Slide Tabs

Click

Pro

Glow Band Sheet Modal

Click

Pro

Expanding Card Modal

Click