@levita-js/react
v0.3.1
Published
React wrapper for Levita 3D tilt & parallax
Downloads
986
Readme
@levita-js/react
React wrapper for Levita — Lightweight 3D tilt & parallax with accelerometer support.
Installation
npm install @levita-js/reactQuick Start
import { Tilt } from "@levita-js/react";
import "@levita-js/react/style.css";
function MyCard() {
return (
<Tilt glare shadow max={20}>
<div className="card-content">
<h1>Tilt Me!</h1>
</div>
</Tilt>
);
}Documentation
Full options and advanced usage documentation can be found at the main Levita repository.
