Divert
CSSA track switch shifts, rerouting an incoming train of packets from a main line to an experimental staging line.
- Tier
- CSS
- Dependencies
- None
- Duration
- 5.5 s, loops
- Categories
- Icons and micro-interactions
- Use cases
- Transitions and reveals, Automation and rules
- Industries
- SaaS and software, Cross-industry
- Style
- Technical · light stroke
- Set
- rollout
- Tags
- arrowlineloopparticlesrotate
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-rollout-divert" data-pulsar="rollout-divert" viewBox="0 0 160 96"><line x1="16" x2="56" y1="36" y2="36" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"></line><line id="rollout-divert-main-track" x1="56" x2="144" y1="36" y2="36" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"></line><path id="rollout-divert-stag-track" stroke="var(--pulsar-accent, currentColor)" stroke-linecap="round" stroke-width="1.5" d="M56 36c18 0 22 30 46 30h42" opacity=".35"></path><g id="rollout-divert-blade"><line x1="56" x2="78" y1="36" y2="36" stroke="var(--pulsar-accent, currentColor)" stroke-linecap="round" stroke-width="2.5"></line></g><g fill="var(--pulsar-accent, currentColor)"><circle id="rollout-divert-pkt-1" cx="32" cy="36" r="2.5"></circle><circle id="rollout-divert-pkt-2" cx="118" cy="66" r="2.5"></circle><circle id="rollout-divert-pkt-3" cx="138" cy="66" r="2.5"></circle></g></svg>
animation.css
.pulsar-rollout-divert #rollout-divert-blade {
transform-origin: 56px 36px;
animation: rollout-divert-turnout 5500ms cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes rollout-divert-turnout {
0%,
28% {
transform: rotate(0deg);
}
38%,
80% {
transform: rotate(26deg);
}
90%,
100% {
transform: rotate(0deg);
}
}
.pulsar-rollout-divert #rollout-divert-stag-track {
animation: rollout-divert-track-anim 5500ms ease-in-out infinite;
}
@keyframes rollout-divert-track-anim {
0%,
28% {
opacity: 0.35;
}
38%,
80% {
opacity: 1;
}
90%,
100% {
opacity: 0.35;
}
}
.pulsar-rollout-divert #rollout-divert-pkt-2,
.pulsar-rollout-divert #rollout-divert-pkt-3 {
animation: rollout-divert-pkt-flow 5500ms linear infinite;
}
@keyframes rollout-divert-pkt-flow {
0%,
35% {
opacity: 0;
transform: translateX(-16px);
}
42%,
78% {
opacity: 1;
transform: translateX(0);
}
88%,
100% {
opacity: 0;
transform: translateX(12px);
}
}
@media (prefers-reduced-motion: reduce) {
.pulsar-rollout-divert * {
animation: none !important;
}
}