Perspective Book

A 3D book component with hover animation and customizable appearance.

Perspective Interfaces

A layered cover that turns any slot content into a dramatic book-style reveal.

Spell Collection

Svelte Animations

Installation

pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/s/perspective-book.json
Download textured cover image

Use this texture for the optional textured book finish and save it in your app's `static/` folder.

Usage

<script lang="ts">	import { PerspectiveBook } from "#lib/components/spell/perspective-book/index.js";</script>
<PerspectiveBook>	<h2>Perspective Interfaces</h2></PerspectiveBook>

Examples

Textured Preview

Zoom in to view the texture details.

Building Interfaces the Svelte Way

A compact tribute to compiler-driven UI design and the creator behind it.

Creator of Svelte

Rich Harris

Props

NameTypeDefaultDescription
size"sm" | "default" | "lg""default"
texturedbooleanfalse
classClassValue''
stylestring