Switch
CSSA user clicks a workspace selector, causing the active dashboard card to fade out and a new one to slide into place.
- Tier
- CSS
- Dependencies
- None
- Duration
- 4 s, loops
- Categories
- Icons and micro-interactions
- Use cases
- Navigation and wayfinding, Transitions and reveals
- Industries
- SaaS and software, Cross-industry
- Style
- Minimal line · light stroke
- Set
- tenant
- Tags
- barsgeometricminimaluistroke
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-tenant-switch" data-pulsar="tenant-switch" viewBox="0 0 160 96"><rect width="88" height="28" x="36" y="34" stroke="currentColor" stroke-width="1.8" opacity=".4" rx="14"></rect><circle cx="54" cy="48" r="3" fill="currentColor" opacity=".3"></circle><circle cx="106" cy="48" r="3" fill="currentColor" opacity=".3"></circle><g class="tenant-switch-pill"><rect width="36" height="20" x="42" y="38" fill="var(--pulsar-accent, currentColor)" fill-opacity=".25" stroke="var(--pulsar-accent, currentColor)" stroke-width="2" rx="10"></rect><circle cx="60" cy="48" r="3" fill="var(--pulsar-accent, currentColor)"></circle></g></svg>
animation.css
.pulsar-tenant-switch {
display: block;
overflow: visible;
}
.pulsar-tenant-switch .tenant-switch-pill {
animation: tenant-switch-pill-anim 4000ms cubic-bezier(0.2, 1, 0.3, 1) infinite;
}
@keyframes tenant-switch-pill-anim {
0%,
15% {
transform: translateX(0);
}
42%,
78% {
transform: translateX(40px);
}
92%,
100% {
transform: translateX(0);
}
}
@media (prefers-reduced-motion: reduce) {
.pulsar-tenant-switch * {
animation: none !important;
}
}