Variants
Cloth Curtain — a blue printed Don't pull. curtain on brass rings, tugged and dragged open into pleats to reveal a spotlit stage with confetti

API Reference

Props for <ClothCurtain />

S

Motion score

Compositor-only

Category
Scroll Effects
Framework
React
Published
Dec 4, 2026
Dependencies
Variants

Cloth Curtain: a curtain animation for React

A printed wool curtain hangs on brass rings over a dark stage. It bobs on its rod when it comes into view and sways in a light breeze. Drag it open and it bunches into pleats, then slides away to show spotlights and confetti.

Use Cloth Curtain as a curtain animation that hides a launch, an event or an offer behind something people want to pull. Set the printed words, the sticker, every color, the fonts and how heavy the cloth feels. It's a Pro React component for Next.js, Vite and Astro with Tailwind CSS v4. More in this category.

What is Cloth Curtain?

Cloth Curtain is a curtain animation for React that moves like real fabric, not a sliding panel. Under the print is a cloth simulation: a grid of points hung from rings on a rod, drawn in WebGL with shaders for the folds, sheen and shadow. It's a single React file, and its only dependency is the cn helper.

How Cloth Curtain works

When the curtain first comes into view, it bobs on its rod and the hem kicks out. At rest, wind (0.6) keeps it moving in a light breeze. With the default drag trigger, you pull it sideways with a mouse or a finger. Set trigger to scroll to draw it open as the page moves, or to manual and pass progress from 0 to 1. drawTime (2.8 s) is the fastest a full draw can take, so it always feels heavy.

As it opens, the rings bunch together, the cloth folds into pleats and slides off the right edge. With grab on, a mouse or pen can hold a patch of cloth and lift it toward you. Let go and it springs back.

Behind it, reveal shows a lit stage. Once the curtain is open, the spotlights sweep, your revealText line appears and confetti bursts: that's the curtain reveal. Turn reveal off and your own page shows through instead.

Customization options

Change the cloth, print, sticker, brass, rod and stage colors, the headline, aside, sticker lines and fonts in the Customize panel, save a look as a variant, then install. Tune how it feels with pleats, swing, bounce, gather and heaviness. In the source, pass children to hang the curtain over your own content. It fills its parent, so put it inside a sized, relative element. The fonts aren't bundled, so load Bricolage Grotesque and Geist Mono, or your own, in your app.

Use cases

  • Product launches, with Product Drop: matte black cloth, white block type and an orange drop sticker on steel rings.
  • Events, premieres and shows, with Opening Night: a heavy red velvet curtain in gold serif, for a slow curtain opening animation.
  • Seasonal sales, with Summer Sale: a light linen blind in tomato serif that blows in the breeze and hides your sale line.
  • Story pages, with trigger set to scroll, so the curtain draws aside as visitors move down the page.

FAQs