Back to components
ComponentTypographyFree

Tilt Text React component

Large display text that tilts and scales in 3D toward the cursor, with smoothed spring-like motion and optional gradient fill.

About the Tilt Text component

Tilt Text is a free display-type effect: a large line of text rotates in 3D toward the pointer and scales up slightly while hovered, then eases back flat when the pointer leaves. It is real DOM text, so screen readers and search engines read it like any other text, and the motion is written directly to the transform each frame without re-rendering React.

text supports line breaks with \n, and fontSize, fontWeight, fontFamily, letterSpacing, lineHeight and textColor style it. autoFit sizes it to the container instead, leaving fitPadding percent on each side. tiltStrength is the maximum rotation in degrees, perspectiveDepth the CSS perspective and smoothing how quickly the tilt follows, and scaleOnHover with scaleAmount sets the zoom. useGradient fills the letters with a horizontal, vertical, diagonal or radial gradient toward gradientColorTo.

When to use it

Use it for a hero headline, a 404 or 'coming soon' message, or a big closing statement on a landing page, where one short phrase should feel tactile.

For a wobbly, melting look use Liquid Text. For text made of particles, use Particle Text.

Installation

Add the Tilt Text component to your project with the shadcn CLI. It lands in components/tilt-text.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/tilt-text

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install clsx tailwind-merge

Related components

Text Scramble Pro
Free
Liquid Text
Free
Word Reveal
Free
Virtualized Table
Free
Live Ticker Table
Free
Grouped Rows Table
Free