Insert Reveal
CSSA redline cursor sweeps horizontally across a blank line, causing a new green text line to grow and reveal itself in its wake.
- 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.
Code
animation.svg
<svg xmlns="http://www.w3.org/2000/svg" fill="none" aria-hidden="true" class="pulsar pulsar-redline-insert-reveal" data-pulsar="redline-insert-reveal" viewBox="0 0 160 96"><g stroke="currentColor" stroke-linecap="round" stroke-width="1.75" class="context-lines" opacity=".4"><line x1="28" x2="108" y1="28" y2="28"></line><line x1="28" x2="96" y1="68" y2="68"></line></g><g class="insert-track"><line x1="28" x2="120" y1="48" y2="48" stroke="currentColor" stroke-dasharray="4 3" opacity=".25"></line></g><g class="inserted-line"><line x1="28" x2="28" y1="48" y2="48" stroke="var(--pulsar-accent, currentColor)" stroke-linecap="round" stroke-width="2" class="new-text"></line></g><g class="cursor-marker"><line x1="28" x2="28" y1="42" y2="54" stroke="var(--pulsar-accent, currentColor)" stroke-linecap="round" stroke-width="2.5" class="cursor"></line></g><line x1="24" x2="28" y1="48" y2="48" stroke="var(--pulsar-accent, currentColor)" stroke-linecap="round" stroke-width="1.5" class="insert-mark" opacity=".7"></line></svg>
animation.css
.pulsar-redline-insert-reveal {
display: block;
width: 100%;
height: 100%;
}
.pulsar-redline-insert-reveal .cursor-marker .cursor {
animation: redline-insert-reveal-cursor-move 4s ease-in-out infinite;
}
.pulsar-redline-insert-reveal .new-text {
animation: redline-insert-reveal-grow 4s ease-in-out infinite;
}
@keyframes redline-insert-reveal-cursor-move {
0%,
5% {
transform: translateX(0);
opacity: 0;
}
10% {
opacity: 1;
}
75% {
transform: translateX(92px);
opacity: 1;
}
90%,
100% {
transform: translateX(92px);
opacity: 0;
}
}
@keyframes redline-insert-reveal-grow {
0%,
5% {
x2: 28px;
opacity: 0;
}
10% {
opacity: 1;
}
75%,
90% {
x2: 120px;
opacity: 1;
}
100% {
opacity: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.pulsar-redline-insert-reveal .cursor-marker .cursor,
.pulsar-redline-insert-reveal .new-text {
animation: none;
transform: none;
opacity: 0.8;
}
}