Pulsar

Diff Split

CSS

A single document icon splits down the middle, separating into side-by-side sheets that reveal green and red highlighted lines.

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
scalegeometricwipeone-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
Diff Split, not animated
Download SVG

Code

animation.svg

<svg xmlns="http://www.w3.org/2000/svg" fill="none" aria-hidden="true" class="pulsar pulsar-redline-diff-split" data-pulsar="redline-diff-split" viewBox="0 0 160 96"><g class="doc-left"><rect width="48" height="60" x="26" y="18" stroke="currentColor" stroke-width="1.25" opacity=".6" rx="3"></rect><line x1="34" x2="66" y1="32" y2="32" stroke="var(--pulsar-accent, currentColor)" stroke-linecap="round" stroke-width="1.75"></line><line x1="34" x2="66" y1="42" y2="42" stroke="currentColor" stroke-linecap="round" stroke-width="1.75" opacity=".4"></line><line x1="34" x2="60" y1="52" y2="52" stroke="var(--pulsar-accent, currentColor)" stroke-linecap="round" stroke-width="1.75"></line><line x1="34" x2="62" y1="62" y2="62" stroke="currentColor" stroke-linecap="round" stroke-width="1.75" opacity=".4"></line></g><line x1="80" x2="80" y1="18" y2="78" stroke="currentColor" stroke-dasharray="3 3" class="center-split" opacity=".3"></line><g class="doc-right"><rect width="48" height="60" x="86" y="18" stroke="currentColor" stroke-width="1.25" opacity=".6" rx="3"></rect><line x1="94" x2="126" y1="32" y2="32" stroke="currentColor" stroke-linecap="round" stroke-width="1.75" opacity=".4"></line><line x1="94" x2="126" y1="42" y2="42" stroke="var(--pulsar-accent, currentColor)" stroke-linecap="round" stroke-width="1.75"></line><line x1="94" x2="118" y1="52" y2="52" stroke="currentColor" stroke-linecap="round" stroke-width="1.75" opacity=".4"></line><line x1="94" x2="122" y1="62" y2="62" stroke="var(--pulsar-accent, currentColor)" stroke-linecap="round" stroke-width="1.75"></line></g></svg>

animation.css

.pulsar-redline-diff-split {
  display: block;
  width: 100%;
  height: 100%;
}
.pulsar-redline-diff-split .doc-left {
  transform-origin: 80px 48px;
  animation: redline-diff-split-open-left 4s ease-in-out infinite;
}
.pulsar-redline-diff-split .doc-right {
  transform-origin: 80px 48px;
  animation: redline-diff-split-open-right 4s ease-in-out infinite;
}
.pulsar-redline-diff-split .center-split {
  animation: redline-diff-split-appear 4s ease-in-out infinite;
}
@keyframes redline-diff-split-open-left {
  0%,
  10% {
    transform: translateX(27px);
    opacity: 0.3;
  }
  40%,
  75% {
    transform: translateX(0);
    opacity: 1;
  }
  90%,
  100% {
    transform: translateX(27px);
    opacity: 0.3;
  }
}
@keyframes redline-diff-split-open-right {
  0%,
  10% {
    transform: translateX(-27px);
    opacity: 0.3;
  }
  40%,
  75% {
    transform: translateX(0);
    opacity: 1;
  }
  90%,
  100% {
    transform: translateX(-27px);
    opacity: 0.3;
  }
}
@keyframes redline-diff-split-appear {
  0%,
  10% {
    opacity: 0;
  }
  40%,
  75% {
    opacity: 0.5;
  }
  90%,
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pulsar-redline-diff-split .doc-left,
  .pulsar-redline-diff-split .doc-right,
  .pulsar-redline-diff-split .center-split {
    animation: none;
    transform: none;
    opacity: 0.8;
  }
}

From this family15 in Redline

See the family