Interactive 3D Book

Pro

A tactile 3D book cover that opens on click with real matte depth, then turns each page on a weighted hinged flip.

css 3d3dcssbookcoverperspectivehover
Interactive 3D Book component preview

Overview

Interactive 3D Book is a React and Tailwind CSS 3D book mockup for ebooks, reports, and portfolios, in Next.js or any React app, animated with Framer Motion. The matte cover tilts on hover, opens on click, and every later click turns a page on a weighted hinge with a gutter shadow, closing again after the last page. Enter or Space opens it, Right Arrow or Page Down turns a page, and Escape closes it, while reduced motion swaps poses without the swing. Choose a banded or full color cover with your own artwork, mark, and pages.

Installation

Run the following command

~/your-project
pnpm dlx wensity@latest add dimensional-book-cover

Usage

Import DimensionalBookCover from @/components/wensity/dimensional-book-cover and render it anywhere in your React or Next.js app. The source lands in your own repo, so every prop, class and animation below is yours to edit.

app/example.tsx
import { DimensionalBookCover } from "@/components/wensity/dimensional-book-cover";
export default function Example() {
return (
<DimensionalBookCover
title="Interface Systems"
subtitle="Tokens, surfaces, states, and motion rules"
accent="#b54b3a"
pages={[
<div key="1">Page one</div>,
<div key="2">Page two</div>,
<div key="3">Page three</div>,
]}
width={214}
/>
);
}

Props

PropTypeDefaultDescription
titlestring"Design Systems Fieldbook"Primary title rendered on the cover.
subtitlestring"Production patterns for sharper UI craft"Optional supporting line below the title.
variant"banded" | "solid""banded"Switches between a top-artwork band and a full-color cover.
accentstring"#c45a45"Flat cover color for the band or solid face. Prefer solid matte colors.
textColorstring-Overrides the cover text color.
widthnumber208Book width in pixels. Height follows the fixed cover ratio.
artworkReact.ReactNode-Custom artwork rendered in the banded cover area.
markReact.ReactNode-Optional logo or mark rendered near the bottom of the cover.
pagesReact.ReactNode[]-Interior pages. Each click after open flips to the next page.
  • Split-Flap Display component preview

    Split-Flap Display

    A ceramic and graphite split-flap device that ripples each flap into your message.

  • Interactive 3D Globe component preview

    Interactive 3D Globe

    A 3D Earth lit day and night from the real sun position, wrapped in a soft atmosphere, with smooth drag-to-orbit controls.

  • Animated Code Diff Viewer component preview

    Animated Code Diff Viewer

    Inline or toggled code diffs rendered inside the same polished code block frame, flipping between before and after.

  • Animated Terminal component preview

    Animated Terminal

    A terminal UI with self-typing commands, CRT phosphor glow and scanlines, streaming output that never re-renders a line.

Featured in React 3D components.