Component packs › Lenticular › Lenticular Heading

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.

Lenticular Heading props

PropTypeDefaultDescription
firststringFirst line.
secondstringSecond line, seen when tilted.
level1 | 2 | 32Heading level. Default 2.
fontSizenumber40Font size in px. Default 40.
swaybooleantrueRock on its own while idle. Default true.
darkboolean
autoplaynumber | falseShowcase mode (any number keeps the sway on).

Methods on the ref

Use it in React

import LenticularHeading from './LenticularHeading';

<LenticularHeading />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Lenticular

Good for: Skeuomorphic UI.