Pulsar

Toggle

CSS

A toggle switch slides to the right, triggering a wave of light that propagates across a network line.

Tier
CSS
Dependencies
None
Duration
5.5 s, loops
Categories
Icons and micro-interactions
Use cases
Workflow and approvals, Automation and rules
Industries
SaaS and software, Cross-industry
Style
Technical · light stroke
Set
rollout
Tags
geometriclinelooppulseui

Companion assets

The same artwork, not animated. Derived from the entry’s own resting state, so it matches exactly.

Animated
CSS tier
Static vector
Toggle, not animated
Download SVG

Code

animation.svg

<svg xmlns="http://www.w3.org/2000/svg" fill="none" aria-hidden="true" class="pulsar pulsar-rollout-toggle" data-pulsar="rollout-toggle" viewBox="0 0 160 96"><line x1="108" x2="144" y1="48" y2="48" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"></line><circle cx="144" cy="48" r="3" fill="currentColor" fill-opacity=".1" stroke="currentColor" stroke-width="1.2"></circle><rect width="68" height="28" x="36" y="34" fill="currentColor" fill-opacity=".04" stroke="currentColor" stroke-width="1.5" rx="14"></rect><g id="rollout-toggle-knob"><circle cx="50" cy="48" r="9" fill="var(--pulsar-accent, currentColor)" fill-opacity=".2" stroke="var(--pulsar-accent, currentColor)" stroke-width="1.8"></circle><circle cx="50" cy="48" r="3.5" fill="var(--pulsar-accent, currentColor)"></circle></g><line id="rollout-toggle-wave" x1="104" x2="144" y1="48" y2="48" stroke="var(--pulsar-accent, currentColor)" stroke-dasharray="8 12" stroke-linecap="round" stroke-width="2.5"></line><circle id="rollout-toggle-pulse" cx="144" cy="48" r="6" stroke="var(--pulsar-accent, currentColor)" stroke-width="1.5" opacity="0"></circle></svg>

animation.css

.pulsar-rollout-toggle #rollout-toggle-knob {
  animation: rollout-toggle-slide 5500ms cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes rollout-toggle-slide {
  0%,
  25% {
    transform: translateX(0);
  }
  38%,
  80% {
    transform: translateX(40px);
  }
  92%,
  100% {
    transform: translateX(0);
  }
}

.pulsar-rollout-toggle #rollout-toggle-wave {
  animation: rollout-toggle-propagate 5500ms ease-out infinite;
}

@keyframes rollout-toggle-propagate {
  0%,
  34% {
    opacity: 0;
    stroke-dashoffset: 20;
  }
  42%,
  76% {
    opacity: 1;
    stroke-dashoffset: -20;
  }
  86%,
  100% {
    opacity: 0;
    stroke-dashoffset: 20;
  }
}

.pulsar-rollout-toggle #rollout-toggle-pulse {
  transform-origin: 144px 48px;
  animation: rollout-toggle-ripple 5500ms ease-out infinite;
}

@keyframes rollout-toggle-ripple {
  0%,
  40% {
    transform: scale(0.6);
    opacity: 0;
  }
  48%,
  76% {
    transform: scale(1.4);
    opacity: 0.85;
  }
  86%,
  100% {
    transform: scale(0.6);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulsar-rollout-toggle * {
    animation: none !important;
  }
}

From this family15 in Rollout

See the family