Relief

Kinetic Typography Word Wall for React

A wall of words where height means something. The words you name (by text or tag) rise out of the page as blocks whose stacked bands run from navy to orange, so how high a word stands is also its color. A change ripples out from where it was asked for; with nothing raised a slow wave rolls across the wall, and the pointer pushes up a mound.

  • Typography
  • Canvas
  • Interaction
  • 3D

Uses clsx, tailwind-merge

Open in ChatGPTOpen in Claude
wavetrue
pointertrue
depth24px
fontSize13px
gap6px
reach150px
tilt0°
speed1.0×
duration0.75s
ripple1500
<Relief />

The demo follows as you drag.

Take this demo to your coding agent.
Add this moment from KeyframeUI to our project and adapt it to our content.

Relief: A wall of words where height means something. The words you name (by text or tag) rise out of the page as blocks whose stacked bands run from navy to orange, so how high a word stands is also its color. A change ripples out from where it was asked for; with nothing raised a slow wave rolls across the wall, and the pointer pushes up a mound.
This demo, Integrations: An integrations wall: pick Data, Payments, Messaging or Dev and the tools of that kind rise out of the wall, rippling from the button you pressed. All lets the wave run.

1. Install it:
   npx shadcn@latest add @keyframeui/relief-demo
   (If the CLI can't find @keyframeui, use https://keyframeui.com/r/relief-demo.json instead.)
   It adds the demo, components/relief-demo.tsx, and the component, components/ui/relief.tsx.

2. Make it ours: our copy, data, images and colors. Keep the structure the motion depends on. If we only need the effect, use <Relief> on its own.

3. These props set its feel. Change them before you change the file:
   - wave (default true): A slow chevron wave rolls across the wall while nothing is raised, and calms flat while words are.
   - pointer (default true): A mouse or pen pushes up a soft mound of words under it. Touch doesn't, so a finger can scroll past.
   - depth (default 24): How far a word at full height rises, in px.
   - fontSize (default 13): Type size of the words, in px.
   - gap (default 6): Space between words and between rows, in px.
   - reach (default 150): Radius of the pointer's mound, in px.
   - tilt (default 0): Turns the whole wall, in degrees. It still fills the box edge to edge.
   - speed (default 1): Speed of the wave, as a multiplier.
   - duration (default 0.75): Seconds a word takes to rise to a new height or settle back. It eases in and out from wherever it was.
   - ripple (default 1500): How fast a change to `raise` travels out from `origin`, in px per second.

4. Don't change, in components/ui/relief.tsx:
   - Height and color are one value: a word's stack is cut into one band per ink, low to high, and its face takes the ink of the band it reached. Never color a word apart from its height.
   - One rAF loop paints one canvas. Flat words are drawn once into a still layer; a frame draws only the raised words, row by row from the top, one fill per ink per row plus cached text sprites. The loop sleeps when nothing moves, off screen and in a hidden tab.
   - A change to `raise` travels out from `origin` as a ripple, and each word eases in and out from wherever it was, so a change mid-flight never snaps. The wave calms while words are raised.
   - Restraint keeps it legible: a crest lifts only a seeded 40% of words, `raise` heights under 0.12 stay flat, and words under a `data-relief-quiet` element stay flat and dim so the copy laid over the wall reads. Raise the few words that matter, not the whole list.
   - Under reduced motion it draws one still frame: the wave held, raised words already up, no pointer mound.
   Its timing is all in the TIMING block at the top of that file.

Docs: https://keyframeui.com/components/relief.md

Installation

Add the component on its own with the CLI, or copy the file in by hand.

The CLI writes components/ui/relief.tsx and installs clsx and tailwind-merge. It needs the @keyframeui registry in components.json; add it once per project.

npx shadcn@latest add @keyframeui/relief

Examples

Finished sections built with Relief. Each one installs whole, with the component included.

Help Center Search

A help center's topics as the wall. Type and every topic that matches rises, closer matches higher, with the count of articles beside the box.

Take this demo to your coding agent.
Add this moment from KeyframeUI to our project and adapt it to our content.

Relief: A wall of words where height means something. The words you name (by text or tag) rise out of the page as blocks whose stacked bands run from navy to orange, so how high a word stands is also its color. A change ripples out from where it was asked for; with nothing raised a slow wave rolls across the wall, and the pointer pushes up a mound.
This demo, Help Center Search: A help center's topics as the wall. Type and every topic that matches rises, closer matches higher, with the count of articles beside the box.

1. Install it:
   npx shadcn@latest add @keyframeui/relief-search-demo
   (If the CLI can't find @keyframeui, use https://keyframeui.com/r/relief-search-demo.json instead.)
   It adds the demo, components/relief-search-demo.tsx, and the component, components/ui/relief.tsx.

2. Make it ours: our copy, data, images and colors. Keep the structure the motion depends on. If we only need the effect, use <Relief> on its own.

3. These props set its feel. Change them before you change the file:
   - wave (default true): A slow chevron wave rolls across the wall while nothing is raised, and calms flat while words are.
   - pointer (default true): A mouse or pen pushes up a soft mound of words under it. Touch doesn't, so a finger can scroll past.
   - depth (default 24): How far a word at full height rises, in px.
   - fontSize (default 13): Type size of the words, in px.
   - gap (default 6): Space between words and between rows, in px.
   - reach (default 150): Radius of the pointer's mound, in px.
   - tilt (default 0): Turns the whole wall, in degrees. It still fills the box edge to edge.
   - speed (default 1): Speed of the wave, as a multiplier.
   - duration (default 0.75): Seconds a word takes to rise to a new height or settle back. It eases in and out from wherever it was.
   - ripple (default 1500): How fast a change to `raise` travels out from `origin`, in px per second.

4. Don't change, in components/ui/relief.tsx:
   - Height and color are one value: a word's stack is cut into one band per ink, low to high, and its face takes the ink of the band it reached. Never color a word apart from its height.
   - One rAF loop paints one canvas. Flat words are drawn once into a still layer; a frame draws only the raised words, row by row from the top, one fill per ink per row plus cached text sprites. The loop sleeps when nothing moves, off screen and in a hidden tab.
   - A change to `raise` travels out from `origin` as a ripple, and each word eases in and out from wherever it was, so a change mid-flight never snaps. The wave calms while words are raised.
   - Restraint keeps it legible: a crest lifts only a seeded 40% of words, `raise` heights under 0.12 stay flat, and words under a `data-relief-quiet` element stay flat and dim so the copy laid over the wall reads. Raise the few words that matter, not the whole list.
   - Under reduced motion it draws one still frame: the wave held, raised words already up, no pointer mound.
   Its timing is all in the TIMING block at the top of that file.

Docs: https://keyframeui.com/components/relief.md

Live Topics

What customers are writing in about this hour: each topic's height is its share of tickets and moves as new ones arrive, read against a fewer-to-more scale.

Take this demo to your coding agent.
Add this moment from KeyframeUI to our project and adapt it to our content.

Relief: A wall of words where height means something. The words you name (by text or tag) rise out of the page as blocks whose stacked bands run from navy to orange, so how high a word stands is also its color. A change ripples out from where it was asked for; with nothing raised a slow wave rolls across the wall, and the pointer pushes up a mound.
This demo, Live Topics: What customers are writing in about this hour: each topic's height is its share of tickets and moves as new ones arrive, read against a fewer-to-more scale.

1. Install it:
   npx shadcn@latest add @keyframeui/relief-volume-demo
   (If the CLI can't find @keyframeui, use https://keyframeui.com/r/relief-volume-demo.json instead.)
   It adds the demo, components/relief-volume-demo.tsx, and the component, components/ui/relief.tsx.

2. Make it ours: our copy, data, images and colors. Keep the structure the motion depends on. If we only need the effect, use <Relief> on its own.

3. These props set its feel. Change them before you change the file:
   - wave (default true): A slow chevron wave rolls across the wall while nothing is raised, and calms flat while words are.
   - pointer (default true): A mouse or pen pushes up a soft mound of words under it. Touch doesn't, so a finger can scroll past.
   - depth (default 24): How far a word at full height rises, in px.
   - fontSize (default 13): Type size of the words, in px.
   - gap (default 6): Space between words and between rows, in px.
   - reach (default 150): Radius of the pointer's mound, in px.
   - tilt (default 0): Turns the whole wall, in degrees. It still fills the box edge to edge.
   - speed (default 1): Speed of the wave, as a multiplier.
   - duration (default 0.75): Seconds a word takes to rise to a new height or settle back. It eases in and out from wherever it was.
   - ripple (default 1500): How fast a change to `raise` travels out from `origin`, in px per second.

4. Don't change, in components/ui/relief.tsx:
   - Height and color are one value: a word's stack is cut into one band per ink, low to high, and its face takes the ink of the band it reached. Never color a word apart from its height.
   - One rAF loop paints one canvas. Flat words are drawn once into a still layer; a frame draws only the raised words, row by row from the top, one fill per ink per row plus cached text sprites. The loop sleeps when nothing moves, off screen and in a hidden tab.
   - A change to `raise` travels out from `origin` as a ripple, and each word eases in and out from wherever it was, so a change mid-flight never snaps. The wave calms while words are raised.
   - Restraint keeps it legible: a crest lifts only a seeded 40% of words, `raise` heights under 0.12 stay flat, and words under a `data-relief-quiet` element stay flat and dim so the copy laid over the wall reads. Raise the few words that matter, not the whole list.
   - Under reduced motion it draws one still frame: the wave held, raised words already up, no pointer mound.
   Its timing is all in the TIMING block at the top of that file.

Docs: https://keyframeui.com/components/relief.md

Props

words

TypeReliefWord[]

The words on the wall: strings, or { text, tags } so raise can name a group. Shown uppercase, each once in the list; they repeat to fill the box.

raise

Typestring | string[] | Record<string, number> | ((word: ReliefEntry) => number) | null

What stands raised. A word or tag, or a list of them, raises every match to full height; a { word: height } map or a function gives each word a height from 0 to 1 (a search score, a count, a plan tier); heights under 0.12 stay flat. null lets the wave run.

origin

Type[number, number]Default[0.5, 0.5]

Where a change to raise ripples out from, as fractions of the box. Point it at the control that asked for it.

wave

TypebooleanDefaulttrue

A slow chevron wave rolls across the wall while nothing is raised, and calms flat while words are.

pointer

TypebooleanDefaulttrue

A mouse or pen pushes up a soft mound of words under it. Touch doesn't, so a finger can scroll past.

inks

Typestring[]

Inks from low to high, any CSS colors (8 by default, navy to red-orange). A stack shows one band per ink, and each face takes the ink it reached; its text turns dark or white, whichever reads better on it.

depth

TypenumberDefault24

How far a word at full height rises, in px.

fontSize

TypenumberDefault13

Type size of the words, in px.

gap

TypenumberDefault6

Space between words and between rows, in px.

reach

TypenumberDefault150

Radius of the pointer's mound, in px.

tilt

TypenumberDefault0

Turns the whole wall, in degrees. It still fills the box edge to edge.

speed

TypenumberDefault1

Speed of the wave, as a multiplier.

duration

TypenumberDefault0.75

Seconds a word takes to rise to a new height or settle back. It eases in and out from wherever it was.

ripple

TypenumberDefault1500

How fast a change to raise travels out from origin, in px per second.

paused

TypebooleanDefaultfalse

Holds the wave where it is. Raised words and the pointer still move.

seed

TypestringDefault"relief"

Changes the shuffle, for two walls of the same words that shouldn't match.

wordClassName

Typestring

Classes for the flat words: a text-* color, and the font family and weight they're set in. Default text-zinc-300 dark:text-zinc-700, semibold. Raised faces pick dark or white text themselves.

label

Typestring

What the wall shows, for screen readers; the words standing raised are read after it. Without it the wall is decoration.

children

TypeReact.ReactNode

Content laid over the wall. Words under any element marked data-relief-quiet stay flat and dim, so a headline or a panel reads.

className

Typestring

Classes for the root, which sizes the wall. Its background (default bg-white, #07080c at night) is the ground and the seam drawn round raised words.