For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
Shadcn Labs/

Book Flip

The new page turns over the old one around a central spine. A React page transition built on View Transitions, installed with the shadcn CLI.

acme.studio/
Studio

We build interfaces that feel fast.

Design and engineering for teams who care about every frame.

FastEvery route ships under 50 kB.
ComposableBlocks that snap together.
TypedEnd-to-end type safety.

Installation

$ pnpm dlx shadcn@latest add @transition-kit/page/book-flip

Usage

<PageTransition id={pathname} transition="book-flip">
  {children}
</PageTransition>
navigateWithTransition(() => navigate("/"), { direction: "back" });

API Reference

PropTypeDefaultDescription
transitionstringThe boundary's transition"book-flip" for this style, on <PageTransition> for every navigation.
durationnumber700Milliseconds on <PageTransition>. Overrides this style's 700ms timing. Edit var(--tk-page-duration, 700ms) in the style's CSS to change only this style.
easingstringease-in-outEasing on <PageTransition>. Overrides this style's easing. Edit var(--tk-page-easing, ease-in-out) in the style's CSS to change only this style.
direction"forward" | "back""forward"Pass { direction: "back" } to navigateWithTransition to run the style in reverse.