Component packs › Lenticular › Lenticular Button

Lenticular Button

Move across the button and its label changes to the detail behind it, strip by strip, as it turns a few degrees.

Lenticular Button is a button 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: two labels under ridges, pointer-driven tilt, rocks once on focus.

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 Button props

PropTypeDefaultDescription
labelstring"Download"First label. Default "Download".
detailstring"macOS, 18 MB"Second label, seen when tilted. Default "macOS, 18 MB".
onClick() => void
widthnumber220Width in px. Default 220.
darkboolean
autoplaynumber | falseShowcase mode: rocks between the labels (any number turns it on).

Methods on the ref

Use it in React

import LenticularButton from './LenticularButton';

<LenticularButton />

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

More in Lenticular

Good for: Skeuomorphic UI.