Reveals
Curtain Reveal
Opens from the centre outward to both sides.
Card title
Supporting copy goes here.
Opens with this animation loaded. Nothing is uploaded — the scene travels in the link.
.curtain {
transform: translate3d(130px, 90px, 0);
box-shadow: 0px 10px 30px 0px #00000059;
clip-path: inset(0% 0% 0% 0%);
width: 220px;
height: 140px;
background: #1c1e2a;
border-radius: 18px;
color: #e7e9ee;
font-size: 14px;
animation: curtain-anim 900ms linear 0ms infinite both;
will-change: transform, opacity;
}
@keyframes curtain-anim {
0% {
clip-path: inset(0% 50% 0% 50%);
animation-timing-function: ease-in-out;
}
100% {
clip-path: inset(0% 0% 0% 0%);
}
}
@media (prefers-reduced-motion: reduce) {
.curtain {
animation: none;
transition: none;
}
}Why it is built this way
clip-path rather than a mask, because the edges here should be hard. Both sides are driven by interpolatable percentages, which is what lets pure CSS animate a shape at all.
What it animates
2 properties across 1 CSS declaration. The bar shows when each one is moving.
clip-pathclip-pathWhat it costs to run
Clip-path repaint on every frame rather than running on the compositor. There is no reflow, so this is far cheaper than animating width or height — but keep the painted area modest.
It runs for 0.90s across 4 keyframe stops, with every property moving over the same window.
One curve throughout: Ease In Out on a card. Keeping a single easing across every property is what makes a multi-property animation read as one movement rather than several things happening at once.
Accessibility
Nothing here hides content — clip-path move over 0.90s and the element is visible throughout. The exported prefers-reduced-motion guard still silences it, which matters most for the looping ones: motion that never stops is the kind that makes people feel unwell.