Book

Animated 3D React book component with CSS perspective transforms, hover rotation, and stripe or simple cover variants.

Open in v0~9.0 kB

Last updated: March 18, 2026

The art of smooth interfaces
Design Engineering Handbook
Building for the modern web

Installation

npx smoothui-cli add book

Features

  • 3D perspective with realistic depth and page edges
  • Hover rotation with scale effect (on pointer devices)
  • Two variants: stripe (color band + white body) and simple (full-color cover)
  • Customizable cover color and text color
  • Configurable width
  • Optional illustration and logo slots
  • Respects reduced motion preferences

Accessibility

Reduced Motion

This component respects the prefers-reduced-motion media query via useReducedMotion from Motion. When reduced motion is preferred, the hover rotation and scale transition are disabled, and the book renders in its static resting state.

ARIA

Decorative elements such as the spine binding overlays, page edges, and back cover are marked with aria-hidden to prevent screen readers from announcing visual-only content.

Props

On this page

Created by

Powered by

motion.dev

Inspired by