Scanline
CSSA horizontal rule with coordinate labels on either end that glides slowly down the height of the frame and fades back to the top.
- Tier
- CSS
- Dependencies
- None
- Duration
- 4.5 s, loops
- Categories
- Backgrounds and ambient
- Use cases
- Security and trust, Ambient background
- Industries
- Security and identity, Cross-industry
- Style
- Technical · light stroke
- Set
- perimeter
- Tags
- lineambientminimalstrokepulse
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-perimeter-scanline" data-pulsar="perimeter-scanline" viewBox="0 0 160 96"><rect width="112" height="68" x="24" y="14" stroke="currentColor" stroke-dasharray="2 4" opacity=".25"></rect><g opacity=".4"><line x1="20" x2="24" y1="20" y2="20" stroke="currentColor"></line><line x1="20" x2="24" y1="36" y2="36" stroke="currentColor"></line><line x1="20" x2="24" y1="48" y2="48" stroke="currentColor" stroke-width="1.25"></line><line x1="20" x2="24" y1="60" y2="60" stroke="currentColor"></line><line x1="20" x2="24" y1="76" y2="76" stroke="currentColor"></line><line x1="136" x2="140" y1="20" y2="20" stroke="currentColor"></line><line x1="136" x2="140" y1="36" y2="36" stroke="currentColor"></line><line x1="136" x2="140" y1="48" y2="48" stroke="currentColor" stroke-width="1.25"></line><line x1="136" x2="140" y1="60" y2="60" stroke="currentColor"></line><line x1="136" x2="140" y1="76" y2="76" stroke="currentColor"></line></g><g class="perimeter-scanline-bar"><line x1="20" x2="140" y1="20" y2="20" stroke="var(--pulsar-accent, currentColor)" stroke-width="1.5"></line><circle cx="20" cy="20" r="2" fill="var(--pulsar-accent, currentColor)"></circle><circle cx="140" cy="20" r="2" fill="var(--pulsar-accent, currentColor)"></circle><path stroke="var(--pulsar-accent, currentColor)" d="m76 16 4 4 4-4m-8 8 4-4 4 4"></path></g></svg>
animation.css
.pulsar-perimeter-scanline {
display: block;
overflow: visible;
}
.pulsar-perimeter-scanline .perimeter-scanline-bar {
animation: perimeter-scanline-glide-anim 4500ms ease-in-out infinite;
}
@keyframes perimeter-scanline-glide-anim {
0% {
transform: translateY(0);
opacity: 0;
}
15% {
opacity: 1;
}
85% {
opacity: 1;
}
100% {
transform: translateY(56px);
opacity: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.pulsar-perimeter-scanline .perimeter-scanline-bar {
animation: none;
}
}