Component packs › Lenticular › Lenticular Heading
One headline turns into another as the reader moves, the words changing strip by strip under a travelling line of light.
Lenticular Heading is a heading from Lenticular, a component pack with 6 lenticular controls: Cards, buttons and headings printed like lenticular plastic: tilt and the picture changes strip by strip. Price: $2 for the whole pack.
Built with: text under ridges, pointer and idle sway, one real heading for readers.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
first | string | First line. | |
second | string | Second line, seen when tilted. | |
level | 1 | 2 | 3 | 2 | Heading level. Default 2. |
fontSize | number | 40 | Font size in px. Default 40. |
sway | boolean | true | Rock on its own while idle. Default true. |
dark | boolean | ||
autoplay | number | false | Showcase mode (any number keeps the sway on). |
destroy(): voidimport LenticularHeading from './LenticularHeading';
<LenticularHeading />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.