Tailwind UI Pattern Registry for humans and agents

transition curtain wipe page-transition navigation entrance

Page Curtain

Details

Category
decorative
Complexity
low
Browser
baseline-2024
Updated
2026-04-15
Animated Reduced Motion aria-hidden
transitioncurtainwipepage-transitionnavigationentrance

Parameters

Name Type Default Description
DURATION_IN number 0.5 Seconds for the curtain to slide in
DURATION_OUT number 0.5 Seconds for the curtain to slide out
DURATION_HOLD number 0.4 Seconds the curtain holds at full coverage

The curtain slides in from the bottom on an exponential ease, holds briefly at full coverage, then wipes out upward. The warm sand gradient and subtle texture lines give it depth without distraction. At prefers-reduced-motion: reduce, the canvas stays empty — the transition simply doesn’t play.

In production, trigger the animation by adding the canvas as a fixed overlay and driving the effect via a custom state machine or Astro’s astro:before-preparation / astro:after-swap lifecycle hooks.