ns-ui / loud

Reveal Cloth Unfurl

Media reveal that unrolls an image like a bolt of cloth: ~24 vertical strips fan open left-to-right off a rotateY hinge, curled strips converge into a shaded cylinder at the roll's leading edge, and one staggered settle ripple (plus a sheen sweep) crosses the surface once fully unrolled.

Use when a hero or feature image that should feel like unwrapping physical cloth or a scroll — a continuous, directional, left-to-right unrolling motion. Reach for reveal-ripple-tiles instead when the reveal should read as a water-sim ripple popping a grid of tiles open from a trigger point outward, which has no roll, no cylinder, and no single direction — the two are both scroll/trigger-driven image reveals but nothing about their motion overlaps.

Install

npx shadcn add https://design.helpmarq.com/r/reveal-cloth-unfurl.json
  • image
  • reveal
  • scroll
  • 3d
  • hero
  • media
  • intersection-observer

ns-ui / reveal-cloth-unfurl

Unrolls open like a bolt of cloth when it scrolls into view; the Replay button rolls it back up and unfurls it again.

Props

PropTypeDefaultDescription
srcstring
altstring
triggernumberBump to (re)play the unroll animation from rolled to unrolled.
strips?numberNumber of vertical strips. Default 24.
aspectRatio?stringCSS aspect-ratio of the media box. Default "16/9".
className?string