Spike
CSSA horizontal line representing a steady signal suddenly surges upward into a sharp spike that flashes once before flattening.
- Tier
- CSS
- Dependencies
- None
- Duration
- 4 s, loops
- Categories
- Icons and micro-interactions
- Use cases
- Errors and warnings, Dashboards and reporting
- Industries
- Security and identity, Cross-industry
- Style
- Minimal line · light stroke
- Set
- anomaly
- Tags
- linepulsegeometricstrokeminimal
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-anomaly-spike" data-pulsar="anomaly-spike" viewBox="0 0 160 96"><line x1="24" x2="136" y1="56" y2="56" stroke="currentColor" stroke-linecap="round" stroke-width="2" class="anomaly-spike-base" opacity=".5"></line><path stroke="var(--pulsar-accent, currentColor)" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M24 56h44l8-34 8 50 8-16h44" class="anomaly-spike-path"></path><circle cx="76" cy="22" r="3.5" fill="var(--pulsar-accent, currentColor)" class="anomaly-spike-peak"></circle><circle cx="76" cy="22" r="9" stroke="var(--pulsar-accent, currentColor)" stroke-width="1.5" class="anomaly-spike-halo"></circle></svg>
animation.css
.pulsar-anomaly-spike {
display: block;
overflow: visible;
}
.pulsar-anomaly-spike .anomaly-spike-path {
stroke-dasharray: 180;
stroke-dashoffset: 180;
animation: anomaly-spike-path-anim 4000ms cubic-bezier(0.2, 1, 0.3, 1) infinite;
}
.pulsar-anomaly-spike .anomaly-spike-peak {
transform-origin: 76px 22px;
animation: anomaly-spike-peak-anim 4000ms ease infinite;
}
.pulsar-anomaly-spike .anomaly-spike-halo {
transform-origin: 76px 22px;
animation: anomaly-spike-halo-anim 4000ms ease infinite;
}
@keyframes anomaly-spike-path-anim {
0%,
15% {
stroke-dashoffset: 180;
opacity: 0;
}
25% {
opacity: 1;
}
50%,
75% {
stroke-dashoffset: 0;
opacity: 1;
}
90%,
100% {
stroke-dashoffset: -180;
opacity: 0;
}
}
@keyframes anomaly-spike-peak-anim {
0%,
30% {
transform: scale(0);
opacity: 0;
}
38% {
transform: scale(1.4);
opacity: 1;
}
50%,
75% {
transform: scale(1);
opacity: 1;
}
88%,
100% {
transform: scale(0);
opacity: 0;
}
}
@keyframes anomaly-spike-halo-anim {
0%,
34% {
transform: scale(0.3);
opacity: 0;
}
40% {
opacity: 0.9;
}
55% {
transform: scale(1.6);
opacity: 0;
}
100% {
transform: scale(1.6);
opacity: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.pulsar-anomaly-spike * {
animation: none !important;
}
}