jdion

GitHubGitHub (opens in a new tab)

@jdion/tilt-react is a tiny lightweight parallax hover tilt effect for React.

npm i @jdion/tilt-react

Example (opens in a new tab) · GitHub Repository (opens in a new tab)

Showcase

Reddit NFTsVX Demo

Usage

import { Tilt } from '@jdion/tilt-react'
 
const MyComponent = () => {
  return (
    <Tilt style={{ height: 250, width: 250 }}>Tilt ✨</Tilt>
  )
}

Alternatives

  • Vanilla JS (opens in a new tab)
  • JQuery (opens in a new tab)