Refraction
CSSA diagonal ray of light shifts its angle as it passes through a rectangular boundary, settling on a targeted measurement division.
- Tier
- CSS
- Dependencies
- None
- Duration
- 4 s, loops
- Categories
- Icons and micro-interactions
- Use cases
- Determinate progress, Dashboards and reporting
- Industries
- Manufacturing and industrial, Cross-industry
- Style
- Technical · light stroke
- Set
- calibrate
- Tags
- lineminimalgeometricstrokepulse
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" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" class="pulsar pulsar-calibrate-refraction" data-pulsar="calibrate-refraction" viewBox="0 0 160 96"><rect width="36" height="44" x="62" y="26" fill="currentColor" fill-opacity=".04" stroke-width="1.5" opacity=".35" rx="2"></rect><line x1="126" x2="126" y1="24" y2="72" stroke-width="1.5" opacity=".35"></line><line x1="122" x2="126" y1="34" y2="34" opacity=".4"></line><line x1="120" x2="126" y1="48" y2="48" stroke="var(--pulsar-accent, currentColor)" stroke-width="2"></line><line x1="122" x2="126" y1="62" y2="62" opacity=".4"></line><line x1="32" x2="62" y1="30" y2="44" stroke="var(--pulsar-accent, currentColor)" stroke-width="2"></line><g class="calibrate-refraction-beam"><line x1="62" x2="98" y1="44" y2="48" stroke="var(--pulsar-accent, currentColor)" stroke-width="2"></line><line x1="98" x2="126" y1="48" y2="48" stroke="var(--pulsar-accent, currentColor)" stroke-width="2"></line><circle cx="126" cy="48" r="2.5" fill="var(--pulsar-accent, currentColor)" stroke-width="0"></circle></g></svg>
animation.css
.pulsar-calibrate-refraction {
display: block;
overflow: visible;
}
.pulsar-calibrate-refraction .calibrate-refraction-beam {
transform-origin: 62px 44px;
animation: calibrate-refraction-settle 4000ms cubic-bezier(0.3, 1.3, 0.4, 1) infinite;
}
@keyframes calibrate-refraction-settle {
0% {
transform: rotate(-14deg);
opacity: 0.6;
}
35%,
75% {
transform: rotate(0deg);
opacity: 1;
}
92%,
100% {
transform: rotate(-14deg);
opacity: 0.6;
}
}
@media (prefers-reduced-motion: reduce) {
.pulsar-calibrate-refraction .calibrate-refraction-beam {
animation: none;
transform: none;
opacity: 1;
}
}