Skip to content

X-Ray Text

An X-ray lens follows the cursor and reveals the structure of the letters: negative, contour lines and a mesh that shifts with parallax.

Plan
Pro · commercial license
Dependencies
React only
Props
8 (8 adjustable)

Included in Pro and Lifetime. See pricing

Inside out

Made with Furin: Pill Nav · Metal Button · Copy Morph

Props

PropTypeDefaultDescription
childrenstring"Inside\nout"The headline being X-rayed (line breaks are supported).
sizenumber118Maximum letter size, in px (it fits to the width).
radiusnumber118Radius of the lens, in px.
tintstring"#4fd0ff"Color of the mesh and the ring (X-ray plate blue).
densitynumber1Density of the contour lines and the mesh (0.5 to 2).
colorstring"#f4f3ef"Letter color.
backgroundstring"#0b0c0f"Background color.
autoplaybooleantrueWith no cursor, the lens sweeps across the headline on its own.

Installation

With your license

1Set up the Pro registry once

Pro components aren't on npm or in the public shadcn registry: you install them with your license from Furin's private registry.

Use my license

2Install X-Ray Text

npx shadcn@latest add @furin-pro/xray-text

Dependencies

React
18 or later
Other libraries
none
License
commercial

Pro components install into your project: the code is yours and there's nothing else to download.

Keep exploring

  • Two text ribbons cross in an X in opposite directions with speed whips; where they overlap, they invert.

    Negative

  • A viewfinder that closes in on the headline, then a two-frame photographic flash in negative with film grain. Click to fire.

    Negative

  • A grid of blocks under the text that flip to negative behind the cursor with a bounce, then return in a wave from where you are.

    Negative