ValyroUI Русская версия

Tilt Card

3D tilt with glare and parallax. Pro · Effects › Cursor and press feedback

A card that tilts in 3D towards the pointer, with a sheen gliding across its surface, a shadow that deepens as it lifts, and optional parallax layers (TiltCardLayer) that float above it in real depth. The pose chases the pointer on the theme's spring in the kit's shared frame loop — only while something moves — and is written straight to the moving parts as transforms and opacity; nothing re-renders and no style is inherited down the card. On leave it settles back on the same spring. Inactive on touch screens; with reduced motion only the sheen follows the pointer.

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add tilt-card
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { TiltCard } from 'valyro-ui-pro';

Props

PropTypeDefault
maxnumber10Maximum tilt, degrees.
scalenumber1.02Scale while the pointer is over the card.
glarebooleantrueA specular sheen that follows the pointer.
shadowbooleantrueA soft shadow under the card that deepens as it lifts and slides away from the pointer.
radiusnumber | stringCorner radius of the card, so the glare follows its shape. Default: the card radius.
disabledbooleanfalseTurns off the tilt, glare tracking and layer parallax; the card stays flat.

Related components

Previous: Magnetic · Next: Ripple · All Effects