Merge Stack
CSSTwo separate document page outlines slide into each other to form a stacked, unified folder icon that pulses with a green border.
- Tier
- CSS
- Dependencies
- None
- Duration
- 4 s, loops
- Categories
- Transitions and reveals
- Use cases
- Success and confirmation, Transitions and reveals
- Industries
- Legal, Cross-industry
- Style
- Technical · light stroke
- Set
- redline
- Tags
- scalegeometricstrokeone-shot
Companion assets
The same artwork, not animated. Derived from the entry’s own resting state, so it matches exactly.
Code
animation.svg
<svg xmlns="http://www.w3.org/2000/svg" fill="none" aria-hidden="true" class="pulsar pulsar-redline-merge-stack" data-pulsar="redline-merge-stack" viewBox="0 0 160 96"><g class="doc-a"><rect width="40" height="52" x="32" y="18" stroke="currentColor" stroke-width="1.25" rx="3"></rect><line x1="40" x2="64" y1="30" y2="30" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"></line><line x1="40" x2="62" y1="40" y2="40" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"></line><line x1="40" x2="60" y1="50" y2="50" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"></line></g><g class="doc-b"><rect width="40" height="52" x="88" y="26" stroke="currentColor" stroke-width="1.25" rx="3"></rect><line x1="96" x2="120" y1="38" y2="38" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"></line><line x1="96" x2="118" y1="48" y2="48" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"></line><line x1="96" x2="116" y1="58" y2="58" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"></line></g><g class="merged-result" opacity="0"><rect width="64" height="52" x="48" y="22" stroke="var(--pulsar-accent, currentColor)" stroke-width="1.75" rx="3"></rect><rect width="64" height="52" x="44" y="26" stroke="currentColor" opacity=".5" rx="3"></rect><line x1="60" x2="100" y1="36" y2="36" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"></line><line x1="60" x2="96" y1="48" y2="48" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"></line><line x1="60" x2="92" y1="60" y2="60" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"></line></g></svg>
animation.css
.pulsar-redline-merge-stack {
display: block;
width: 100%;
height: 100%;
}
.pulsar-redline-merge-stack .doc-a {
transform-origin: 52px 48px;
animation: redline-merge-stack-slide-a 4s ease-in-out infinite;
}
.pulsar-redline-merge-stack .doc-b {
transform-origin: 108px 52px;
animation: redline-merge-stack-slide-b 4s ease-in-out infinite;
}
.pulsar-redline-merge-stack .merged-result {
animation: redline-merge-stack-appear 4s ease-in-out infinite;
}
@keyframes redline-merge-stack-slide-a {
0%,
10% {
transform: translateX(0);
opacity: 1;
}
45% {
transform: translateX(20px);
opacity: 0;
}
55%,
90% {
transform: translateX(20px);
opacity: 0;
}
100% {
transform: translateX(0);
opacity: 1;
}
}
@keyframes redline-merge-stack-slide-b {
0%,
10% {
transform: translateX(0);
opacity: 1;
}
45% {
transform: translateX(-20px);
opacity: 0;
}
55%,
90% {
transform: translateX(-20px);
opacity: 0;
}
100% {
transform: translateX(0);
opacity: 1;
}
}
@keyframes redline-merge-stack-appear {
0%,
40% {
opacity: 0;
}
55%,
80% {
opacity: 1;
}
92%,
100% {
opacity: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.pulsar-redline-merge-stack .doc-a,
.pulsar-redline-merge-stack .doc-b,
.pulsar-redline-merge-stack .merged-result {
animation: none;
transform: none;
opacity: 0.8;
}
}