@levita-js/svelte
v0.3.1
Published
Svelte wrapper for Levita 3D tilt & parallax
Readme
@levita-js/svelte
Svelte action for Levita — Lightweight 3D tilt & parallax with accelerometer support.
Installation
npm install @levita-js/svelteQuick Start
<script>
import { tilt } from "@levita-js/svelte";
import "@levita-js/svelte/style.css";
</script>
<div use:tilt={{ glare: true, shadow: true, max: 20 }}>
<h1>Tilt Me!</h1>
</div>Documentation
Full options and advanced usage documentation can be found at the main Levita repository.
