Component Match
CSSTwo complementary halves of an asymmetrical block slide together along a central seam, locking into a unified solid rectangle.
- Tier
- CSS
- Dependencies
- None
- Duration
- 4 s, loops
- Categories
- Decorative and illustrative
- Use cases
- Success and confirmation, Workflow and approvals
- Industries
- Manufacturing and industrial, Cross-industry
- Style
- Duotone · regular stroke
- Set
- bom
- Tags
- geometricminimalprogress
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" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" class="pulsar pulsar-bom-component-match" data-pulsar="bom-component-match" viewBox="0 0 160 96"><line x1="28" x2="132" y1="26" y2="26" stroke-dasharray="3 3" opacity=".25"></line><line x1="28" x2="132" y1="70" y2="70" stroke-dasharray="3 3" opacity=".25"></line><path fill="var(--pulsar-accent, currentColor)" fill-opacity=".15" stroke="var(--pulsar-accent, currentColor)" stroke-width="1.5" d="M42 32h22v10h8v12h-8v10H42Z" class="half left"></path><path fill="currentColor" fill-opacity=".1" stroke-width="1.5" d="M118 32H96v10h-8v12h8v10h22Z" class="half right"></path><line x1="80" x2="80" y1="30" y2="66" stroke="var(--pulsar-accent, currentColor)" stroke-width="2" class="seam-flash"></line></svg>
animation.css
.pulsar-bom-component-match {
display: block;
overflow: visible;
}
.pulsar-bom-component-match .half.left {
animation: bom-component-match-left 4000ms ease-in-out infinite;
}
.pulsar-bom-component-match .half.right {
animation: bom-component-match-right 4000ms ease-in-out infinite;
}
.pulsar-bom-component-match .seam-flash {
animation: bom-component-match-seam 4000ms ease-in-out infinite;
}
@keyframes bom-component-match-left {
0%,
15% {
transform: translateX(-14px);
opacity: 0.6;
}
40%,
80% {
transform: translateX(8px);
opacity: 1;
}
95%,
100% {
transform: translateX(-14px);
opacity: 0.6;
}
}
@keyframes bom-component-match-right {
0%,
15% {
transform: translateX(14px);
opacity: 0.6;
}
40%,
80% {
transform: translateX(-8px);
opacity: 1;
}
95%,
100% {
transform: translateX(14px);
opacity: 0.6;
}
}
@keyframes bom-component-match-seam {
0%,
38% {
opacity: 0;
}
45%,
75% {
opacity: 1;
stroke-width: 2.5;
}
85%,
100% {
opacity: 0;
stroke-width: 1.5;
}
}
@media (prefers-reduced-motion: reduce) {
.pulsar-bom-component-match .half.left,
.pulsar-bom-component-match .half.right,
.pulsar-bom-component-match .seam-flash {
animation: none;
transform: none;
opacity: 1;
}
}