Corridor
CSSTwo parallel vertical track rules with horizontal distance calibration ticks that glide slowly in opposite directions.
- Tier
- CSS
- Dependencies
- None
- Duration
- 4 s, loops
- Categories
- Backgrounds and ambient
- Use cases
- Security and trust, Ambient background
- Industries
- Security and identity, IT services and infrastructure
- Style
- Technical · light stroke
- Set
- perimeter
- Tags
- barslineambientminimalstroke
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-corridor" data-pulsar="perimeter-corridor" viewBox="0 0 160 96"><line x1="52" x2="52" y1="12" y2="84" stroke="currentColor" stroke-width="1.25" opacity=".6"></line><line x1="108" x2="108" y1="12" y2="84" stroke="currentColor" stroke-width="1.25" opacity=".6"></line><line x1="80" x2="80" y1="16" y2="80" stroke="currentColor" stroke-dasharray="2 4" opacity=".2"></line><g class="perimeter-corridor-ticks-left"><path stroke="currentColor" d="M44 4h8m-6 8h6m-8 8h8m-6 8h6m-8 8h8m-6 8h6m-8 8h8m-6 8h6m-8 8h8m-6 8h6m-8 8h8m-6 8h6m-8 8h8" opacity=".6"></path></g><g class="perimeter-corridor-ticks-right"><path stroke="currentColor" d="M108 4h8m-8 8h6m-6 8h8m-8 8h6m-6 8h8m-8 8h6m-6 8h8m-8 8h6m-6 8h8m-8 8h6m-6 8h8m-8 8h6m-6 8h8" opacity=".6"></path></g><g class="perimeter-corridor-marker"><circle cx="80" cy="48" r="3" fill="var(--pulsar-accent, currentColor)" fill-opacity=".2" stroke="var(--pulsar-accent, currentColor)" stroke-width="1.5"></circle><line x1="56" x2="74" y1="48" y2="48" stroke="var(--pulsar-accent, currentColor)" stroke-dasharray="2 2"></line><line x1="86" x2="104" y1="48" y2="48" stroke="var(--pulsar-accent, currentColor)" stroke-dasharray="2 2"></line></g></svg>
animation.css
.pulsar-perimeter-corridor {
display: block;
overflow: visible;
}
.pulsar-perimeter-corridor .perimeter-corridor-ticks-left {
animation: perimeter-corridor-down-anim 4000ms linear infinite;
}
.pulsar-perimeter-corridor .perimeter-corridor-ticks-right {
animation: perimeter-corridor-up-anim 4000ms linear infinite;
}
.pulsar-perimeter-corridor .perimeter-corridor-marker {
animation: perimeter-corridor-marker-anim 4000ms ease-in-out infinite;
}
@keyframes perimeter-corridor-down-anim {
0% {
transform: translateY(0);
}
100% {
transform: translateY(16px);
}
}
@keyframes perimeter-corridor-up-anim {
0% {
transform: translateY(0);
}
100% {
transform: translateY(-16px);
}
}
@keyframes perimeter-corridor-marker-anim {
0%,
100% {
transform: translateY(-12px);
opacity: 0.7;
}
50% {
transform: translateY(12px);
opacity: 1;
}
}
@media (prefers-reduced-motion: reduce) {
.pulsar-perimeter-corridor .perimeter-corridor-ticks-left,
.pulsar-perimeter-corridor .perimeter-corridor-ticks-right,
.pulsar-perimeter-corridor .perimeter-corridor-marker {
animation: none;
}
}