Align
CSSTwo offset horizontal line segments are pulled vertically into perfect alignment, merging into a single continuous stroke.
- Tier
- CSS
- Dependencies
- None
- Duration
- 4 s, loops
- Categories
- Icons and micro-interactions
- Use cases
- Success and confirmation, Sync and integration
- Industries
- Security and identity, Cross-industry
- Style
- Minimal line · light stroke
- Set
- patch
- Tags
- linegeometricminimalstrokeui
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-patch-align" data-pulsar="patch-align" viewBox="0 0 160 96"><line x1="24" x2="136" y1="48" y2="48" stroke="currentColor" stroke-dasharray="3 3" opacity=".3"></line><g class="patch-align-seg-l"><line x1="28" x2="78" y1="38" y2="38" stroke="var(--pulsar-accent, currentColor)" stroke-linecap="round" stroke-width="2.5"></line><circle cx="78" cy="38" r="2.5" fill="var(--pulsar-accent, currentColor)"></circle></g><g class="patch-align-seg-r"><line x1="82" x2="132" y1="58" y2="58" stroke="var(--pulsar-accent, currentColor)" stroke-linecap="round" stroke-width="2.5"></line><circle cx="82" cy="58" r="2.5" fill="var(--pulsar-accent, currentColor)"></circle></g><circle cx="80" cy="48" r="4" fill="var(--pulsar-accent, currentColor)" class="patch-align-pip"></circle></svg>
animation.css
.pulsar-patch-align {
display: block;
overflow: visible;
}
.pulsar-patch-align .patch-align-seg-l {
animation: patch-align-seg-l-anim 4000ms cubic-bezier(0.2, 1, 0.3, 1) infinite;
}
.pulsar-patch-align .patch-align-seg-r {
animation: patch-align-seg-r-anim 4000ms cubic-bezier(0.2, 1, 0.3, 1) infinite;
}
.pulsar-patch-align .patch-align-pip {
transform-origin: 80px 48px;
animation: patch-align-pip-anim 4000ms ease infinite;
}
@keyframes patch-align-seg-l-anim {
0%,
15% {
transform: translateY(0);
}
35%,
80% {
transform: translateY(10px);
}
92%,
100% {
transform: translateY(0);
}
}
@keyframes patch-align-seg-r-anim {
0%,
15% {
transform: translateY(0);
}
35%,
80% {
transform: translateY(-10px);
}
92%,
100% {
transform: translateY(0);
}
}
@keyframes patch-align-pip-anim {
0%,
30% {
transform: scale(0);
opacity: 0;
}
38% {
transform: scale(1.4);
opacity: 1;
}
50%,
80% {
transform: scale(1);
opacity: 0.8;
}
90%,
100% {
transform: scale(0);
opacity: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.pulsar-patch-align * {
animation: none !important;
}
}