Skip to content

Text Lenticular

Pro

Two texts woven into one, like a lenticular print. A tilt, the pointer, or the scroll picks which one shows.

  • React 19
  • Tailwind CSS 4

Added Nov 15, 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

Text Lenticular 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
35
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.

Put the two texts in the Front and Back parts.

two-faces.tsx

TextLenticular

<div>
PropTypeDefaultDescription
ridgestring | number"max(3px,0.12em)"The width of one lens ridge: px as a number, or a CSS length ("max(3px,0.12em)" follows the text size). Default 4: it reads as plastic and still shows the strips.
softnessnumber—The soft edge of a strip, 0 (hard, default) to 1 (a blend across the whole ridge).
scrollBand—The scroll band of the scroll trigger. Default 35% to 65% of the pass.
trigger"hover""scroll""hover"What turns it: hover (default) a mouse across the text, a finger drag, or a key; scroll the page scroll, as the text passes the middle of the view.
face"back""front"—The face that shows (controlled): front or back. A change glides the strips to it.
defaultFace"back""front""front"The face at the start (uncontrolled). Default front.
onFaceChange—Called once when a mouse leave, a drag release, or a key settles it on the other face.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

TextLenticularFront

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

TextLenticularBack

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.
  • Use trigger="scroll" to turn the faces with the page scroll.
  • Use face to control which face shows.
ArrowLeft / ArrowRightTurns to one face or the other (they follow the text direction).
ArrowUp / EndTurns to the back face.
ArrowDown / HomeTurns to the front face.
Enter / SpaceTurns to the other face.
Turn
follow · the faces turn with the pointer, the drag, or the scroll, and settle on one face
  1. AddedText Lenticular.
Open the release