Prism Sweep Transition

Premium React transition wrapper that swaps content under a custom faceted WebGL prism field — frame-level, persistent, and reduced-motion friendly.

Open in v0

Last updated: July 6, 2026

smoothui.dev/preview
Dashboard

Prism sweep

Revenue is ready to review.

A faceted prism field for major state changes across the whole component frame.

MRR
Activation
Retention

Installation

npx smoothui-cli add prism-sweep-transition

Features

  • Route/state transition wrapper triggered by a transitionKey
  • Custom faceted prism field rendered over the whole component frame with a persistent WebGL shader controller
  • Swaps the new content at the shader midpoint so the reveal lands under the crest
  • Direction controls for product-specific motion language
  • Accessible: honors prefers-reduced-motion and keeps semantic content in the DOM

Why it is different

Product UI needs control, restraint, and graceful failure. Prism Sweep Transition uses a SmoothUI-specific faceted caustic shader, swaps content under the field crest, and contains the canvas inside the component frame instead of taking over the whole app.

Use it sparingly for meaningful state changes: publishing, checkout completion, presentation mode changes, or section-level navigation. Avoid triggering it on passive interactions like hover, dropdowns, or every internal link.

Accessibility

Reduced Motion

The component uses useReducedMotion from Motion. When reduced motion is preferred, content swaps immediately, the sweep is skipped, and onRest still fires so application logic stays consistent.

Props

On this page

Created by

Powered by

motion.dev