Sections / Gems / Cursor and pointer effects
Dent Buttons
A call-to-action pair with a soft, physical surface. Where the pointer rests the button dents in, lit from the side the pointer came from; press and it sinks deep and squashes, let go and it springs back with a little wobble, bulging out for a moment before it settles. A slow light drifts across both while nobody touches them, and the first time they are seen the main one gets a gentle poke. Real links or buttons, no canvas.
- Kind
- Cursor and pointer effects
- Interaction
- pointer dent · press and spring · drifting light · keyboard · links or buttons · CSS lighting
- Dependencies
- None
- Licence
- Licensed with Full Access, for the sites you build; do not resell the gem itself
Formats
- Webflow (native)
- Figma (layers)
- Framer component
- HTML
- Prompts for Claude Code, Cursor, Lovable, v0, Bolt
Copy to Webflow pastes a native section with the gem in an Embed inside it. Copy to Figma pastes a frame of its best moment, text and controls as layers. Copy to Framer pastes a component with its options as controls. HTML is one self-contained snippet. Each prompt (Claude Code, Cursor, Lovable, v0, Bolt) carries the exact files, so your agent installs this gem, not a lookalike. With the MCP server, ask your agent for get_section("dent-buttons").
Behaviour and accessibility
- They are real links (or buttons with onAction), with their labels as text; Enter and Space press them with the same give, and focus shows a dent and a clear ring.
- On touch screens a tap presses where the finger lands and springs back; the drifting light needs no pointer.
- The light drifts while they are on screen and everything stops off screen or in a background tab; the label carries no transform once a button is still.
- With prefers-reduced-motion: no drift, spring or poke; the dent appears and goes at once.
- Anything you put inside the element (a headline, a line of copy) sits above the buttons. Under 480 px the buttons stack, full width.
Options
| Option | Type | Default | What |
|---|---|---|---|
primary | DentAction | {"label":"Start free trial","href":"#start"} | The main call to action. |
secondary | DentAction | null | {"label":"Book a demo","href":"#demo"} | The second one; null leaves it out. |
color | string | "#f0eadf" | Colour of the main button. |
ink | string | "#1b1c20" | Colour of its label. |
colorAlt | string | "#2a2c33" | Colour of the second button. |
inkAlt | string | "#f2f2f4" | Colour of its label. |
softness | number | 1 | How soft the surface is: 1 is a firm cushion, 2 is putty. |
hint | boolean | true | Poke the main button once the first time it is seen. |
onAction | (index: number) => void | Called when a button without href is pressed: 0 for the main one, 1 for the second. |



Free