Back to docs
Animation

Parallax Tilt

Interactive tilt effect for cards and media previews.

Install

npx shadcn@latest add @native-bits/parallax-tilt

Dependencies

react-native-reanimatedreact-native-gesture-handler
Try in Sandbox
animationinteractivemobile

Props

PropTypeDefaultDescription
childrenReactNode-Animated content
intensitynumber10Maximum tilt degrees
perspectivenumber6503D perspective value

Usage

```tsx
import { parallax-tilt } from '@/components/native-bits/parallax-tilt'

<ParallaxTilt intensity={10}>
  <MediaCard />
</ParallaxTilt>
```

Source code

Loading...