Percentage
CSSA calibrated linear drafting scale advances a precision vernier slider from 0% to 100% with technical readout.
- Tier
- CSS
- Dependencies
- None
- Duration
- 5.5 s, loops
- Categories
- Icons and micro-interactions
- Use cases
- Determinate progress, Dashboards and reporting
- Industries
- SaaS and software, Cross-industry
- Style
- Technical · light stroke
- Set
- rollout
- Tags
- barschartcounterloopprogress
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-rollout-percentage" data-pulsar="rollout-percentage" viewBox="0 0 160 96"><g stroke="currentColor" stroke-linecap="round" stroke-width="1.2"><line x1="24" x2="136" y1="48" y2="48" opacity=".4"></line><line x1="24" x2="24" y1="42" y2="48"></line><line x1="52" x2="52" y1="44" y2="48" opacity=".6"></line><line x1="80" x2="80" y1="42" y2="48"></line><line x1="108" x2="108" y1="44" y2="48" opacity=".6"></line><line x1="136" x2="136" y1="42" y2="48"></line></g><line id="rollout-percentage-fill" x1="24" x2="136" y1="48" y2="48" stroke="var(--pulsar-accent, currentColor)" stroke-dasharray="112" stroke-dashoffset="112" stroke-linecap="round" stroke-width="3"></line><g id="rollout-percentage-cursor"><rect width="12" height="28" x="18" y="34" fill="var(--pulsar-accent, currentColor)" fill-opacity=".2" stroke="var(--pulsar-accent, currentColor)" stroke-width="1.5" rx="2"></rect><line x1="24" x2="24" y1="34" y2="62" stroke="var(--pulsar-accent, currentColor)" stroke-width="1.5"></line></g></svg>
animation.css
.pulsar-rollout-percentage #rollout-percentage-fill {
animation: rollout-percentage-fill-anim 5500ms cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes rollout-percentage-fill-anim {
0%,
20% {
stroke-dashoffset: 112;
}
55%,
80% {
stroke-dashoffset: 0;
}
92%,
100% {
stroke-dashoffset: 112;
}
}
.pulsar-rollout-percentage #rollout-percentage-cursor {
animation: rollout-percentage-cursor-slide 5500ms cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes rollout-percentage-cursor-slide {
0%,
20% {
transform: translateX(0);
}
55%,
80% {
transform: translateX(112px);
}
92%,
100% {
transform: translateX(0);
}
}
@media (prefers-reduced-motion: reduce) {
.pulsar-rollout-percentage * {
animation: none !important;
}
}