Skip to content

Flag Wave Gallery

Pro

A row of pictures that moves like a flag in the wind. Use it for fashion, art, and summer campaigns.

  • React 19
  • Tailwind CSS 4

Added Nov 24, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Flag Wave Gallery needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
42
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Pass the cards as items, then place the stage and the caption parts. Give the root a height.

flag-wave-prints.tsx

FlagWaveGallery

<div>
PropTypeDefaultDescription
itemsRequired—
driveMotionValue<number>—Moves the look from a value, in cards: 1.5 is halfway from card 1 to card 2. Use it for scroll or time. The hand no longer moves the look, and a drag stays with the page.
finishes—The finishes finish may switch between. The shaders hold all of them, so a switch fades and never builds the program again. A look item that offers a choice passes its choices.
budgetnumber—The number of cards in the look. It rounds up to whole copies of the items.
cardAspectnumber—Card width / card height. Default: the one the look was made for.
driftnumber—Cards per second while nobody touches the gallery.
renderer"auto""css"—css forces flat cards, as a page with no WebGL gets.
cardScalenumber0.8The size of the cards on the flag.
gapnumber0.04The space between the cards.
amplitudenumber0.28How high the cloth lifts in a wave.
wavesnumber1.6The number of waves across the flag.
flownumber1How fast the waves run across the flag by themselves.
finish"clean""glass""melt""pixel""ripple""smear""clean"The surface of the cards in motion: streaks of color (smear), glass, melt, pixel blocks, or ripples.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use amplitude, waves, and flow for the wave height, how many waves, and how fast they run.
  • A drag sends larger waves through the row.
TabMoves focus to the stage. The focus ring shows on the front card.
← →Moves to the card before or after. The arrows swap in a right-to-left page.
HomeorEndMoves to the first or the last card.
Move
glide · Previous, Next, and the arrow keys move one card in about 0.46s; a far card takes up to 0.86s
Throw
glide · a drag release lands where the cards would be 320ms later, on the nearest card
Rest
progress · with `drift`, the cards move on their own, in cards a second; after a touch the drift waits 5s and eases back in
Wave
sine · the row ripples on its own, with no input; `flow` sets the speed and `amplitude` the height
  1. AddedFlag Wave Gallery.
Open the release