Put the two texts in the Front and Back parts.
two-faces.tsx
TextLenticular
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ridge | string | 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. |
| softness | number | — | The soft edge of a strip, 0 (hard, default) to 1 (a blend across the whole ridge). |
| scroll | — | 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. |
| default | "back""front" | "front" | The face at the start (uncontrolled). Default front. |
| on | — | 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>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
TextLenticularBack
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
| ArrowLeft / ArrowRight | Turns to one face or the other (they follow the text direction). |
|---|---|
| ArrowUp / End | Turns to the back face. |
| ArrowDown / Home | Turns to the front face. |
| Enter / Space | Turns to the other face. |







