Standard
CSSA horizontal dimension line adjusts its endpoints as a calibrated gauge bar locks onto target.
- Tier
- CSS
- Dependencies
- None
- Duration
- 4 s, loops
- Categories
- Icons and micro-interactions
- Use cases
- Success and confirmation, Security and trust
- Industries
- Education and training, Cross-industry
- Style
- Technical · light stroke
- Set
- accredit
- Tags
- linescaleprogressloop
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-accredit-standard" data-pulsar="accredit-standard" viewBox="0 0 160 96"><line x1="32" x2="128" y1="48" y2="48" stroke="currentColor" stroke-width="1.5" class="target-axis" opacity=".3"></line><rect width="16" height="32" x="72" y="32" fill="var(--pulsar-accent, currentColor)" fill-opacity=".1" stroke="var(--pulsar-accent, currentColor)" stroke-dasharray="3 2" stroke-width="1.5" class="standard-box" rx="2"></rect><line x1="48" x2="48" y1="36" y2="60" stroke="currentColor" stroke-width="2" class="caliper-l"></line><line x1="112" x2="112" y1="36" y2="60" stroke="currentColor" stroke-width="2" class="caliper-r"></line><rect width="64" height="8" x="48" y="44" fill="var(--pulsar-accent, currentColor)" class="gauge-fill" rx="2"></rect><circle cx="80" cy="48" r="2.5" fill="currentColor"></circle></svg>
animation.css
.pulsar-accredit-standard {
display: block;
width: 100%;
height: 100%;
}
.pulsar-accredit-standard .caliper-l {
animation: accredit-standard-cal-l 4s ease-in-out infinite;
}
.pulsar-accredit-standard .caliper-r {
animation: accredit-standard-cal-r 4s ease-in-out infinite;
}
.pulsar-accredit-standard .gauge-fill {
transform-origin: 80px 48px;
animation: accredit-standard-gauge 4s ease-in-out infinite;
}
@keyframes accredit-standard-cal-l {
0%,
100% {
transform: translateX(0);
}
50% {
transform: translateX(16px);
}
}
@keyframes accredit-standard-cal-r {
0%,
100% {
transform: translateX(0);
}
50% {
transform: translateX(-16px);
}
}
@keyframes accredit-standard-gauge {
0%,
100% {
transform: scaleX(1);
opacity: 0.6;
}
50% {
transform: scaleX(0.5);
opacity: 1;
}
}
@media (prefers-reduced-motion: reduce) {
.pulsar-accredit-standard .caliper-l,
.pulsar-accredit-standard .caliper-r,
.pulsar-accredit-standard .gauge-fill {
animation: none;
transform: none;
opacity: 1;
}
}