02.06 · Entrance & Exit

Curtain Reveal

A colored panel covers it, then slides away. Best for intros and logos.

Watch it

It plays by itself. Turn on slow motion to see each part of the movement.

Curtain Reveal
Unveiled
The reveal is hidden then exposed — your eye registers the change dramatically.

Try it

Change a setting and the animation plays again.

Comes in from

Both sides sends two panels that meet in the middle.

Speed

How fast the curtain slides across.

Pause while covered

The pause is what makes the change register.

More optionsFewer options

Curtain color

Strong contrast with the content feels more dramatic.

Copy the prompt

Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.

Add a curtain reveal to [the content you want to reveal]. A solid colored panel should slide across and cover the content completely, hold for the pause given in the settings, then keep going and slide off the far side, leaving the content visible. The pause is what makes the change register. When the panels come in from both sides, two panels meet in the middle, then part. Pick a panel color that contrasts strongly with the content. Move the panels rather than resizing them so the motion stays smooth. If the visitor has reduced motion turned on, show the content without the curtain. Match the settings listed below.

Replace the words in brackets with your own element. Your settings are added at the end.

Free and open source. If this helped, a star on GitHub helps other people find it.

Star on GitHub

What it is

The full explanation is in README.md.

Good for

  • Page intros
  • Logos
  • Section changes
  • Portfolio pieces

Avoid on

  • Buttons and menus
  • Things shown often