Pulsar

Strike Wipe

CSS

A horizontal strike-through line draws itself over a text block from left to right, then collapses vertically to erase the text.

Tier
CSS
Dependencies
None
Duration
4 s, loops
Categories
Transitions and reveals
Use cases
Documents and files, Transitions and reveals
Industries
Legal, Cross-industry
Style
Technical · light stroke
Set
redline
Tags
wipelinestrokeone-shot

Companion assets

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

Animated
CSS tier
Static vector
Strike Wipe, not animated
Download SVG

Code

animation.svg

<svg xmlns="http://www.w3.org/2000/svg" fill="none" aria-hidden="true" class="pulsar pulsar-redline-strike-wipe" data-pulsar="redline-strike-wipe" viewBox="0 0 160 96"><g class="text-block"><line x1="28" x2="116" y1="34" y2="34" stroke="currentColor" stroke-linecap="round" stroke-width="1.75" class="tb l1"></line><line x1="28" x2="124" y1="48" y2="48" stroke="currentColor" stroke-linecap="round" stroke-width="1.75" class="tb l2"></line><line x1="28" x2="96" y1="62" y2="62" stroke="currentColor" stroke-linecap="round" stroke-width="1.75" class="tb l3"></line></g><g class="strikethroughs"><line x1="28" x2="28" y1="34" y2="34" stroke="var(--pulsar-accent, currentColor)" stroke-linecap="round" stroke-width="2" class="st s1"></line><line x1="28" x2="28" y1="48" y2="48" stroke="var(--pulsar-accent, currentColor)" stroke-linecap="round" stroke-width="2" class="st s2"></line><line x1="28" x2="28" y1="62" y2="62" stroke="var(--pulsar-accent, currentColor)" stroke-linecap="round" stroke-width="2" class="st s3"></line></g></svg>

animation.css

.pulsar-redline-strike-wipe {
  display: block;
  width: 100%;
  height: 100%;
}
.pulsar-redline-strike-wipe .st.s1 {
  animation: redline-strike-wipe-draw-1 4s ease-in-out infinite;
}
.pulsar-redline-strike-wipe .st.s2 {
  animation: redline-strike-wipe-draw-2 4s ease-in-out infinite;
}
.pulsar-redline-strike-wipe .st.s3 {
  animation: redline-strike-wipe-draw-3 4s ease-in-out infinite;
}
.pulsar-redline-strike-wipe .text-block {
  animation: redline-strike-wipe-fade 4s ease-in-out infinite;
}
@keyframes redline-strike-wipe-draw-1 {
  0%,
  5% {
    transform: scaleX(0);
    transform-origin: 28px 34px;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  35%,
  85% {
    transform: scaleX(1);
    transform-origin: 28px 34px;
    opacity: 1;
  }
  95%,
  100% {
    opacity: 0;
  }
}
@keyframes redline-strike-wipe-draw-2 {
  0%,
  15% {
    transform: scaleX(0);
    transform-origin: 28px 48px;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  45%,
  85% {
    transform: scaleX(1);
    transform-origin: 28px 48px;
    opacity: 1;
  }
  95%,
  100% {
    opacity: 0;
  }
}
@keyframes redline-strike-wipe-draw-3 {
  0%,
  25% {
    transform: scaleX(0);
    transform-origin: 28px 62px;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  55%,
  85% {
    transform: scaleX(1);
    transform-origin: 28px 62px;
    opacity: 1;
  }
  95%,
  100% {
    opacity: 0;
  }
}
@keyframes redline-strike-wipe-fade {
  0%,
  55% {
    opacity: 1;
  }
  85%,
  100% {
    opacity: 0.2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pulsar-redline-strike-wipe .st.s1,
  .pulsar-redline-strike-wipe .st.s2,
  .pulsar-redline-strike-wipe .st.s3,
  .pulsar-redline-strike-wipe .text-block {
    animation: none;
    transform: none;
    opacity: 0.8;
  }
}

From this family15 in Redline

See the family