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.
Inside, the box is drawn small so the panel's whole trip shows: it waits off one edge, covers the content and holds, then leaves off the far edge.
No curtain simply shows the content; Curtain covers it with a panel, holds, then slides the panel away, so it seems revealed. With Loop off, the panel rests as it leaves.
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.
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.
Your settings
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 GitHubWhat it is
The full explanation is in README.md.