Rotate
CSSA public-private keypair representation (two linked geometric rings) pulls apart, swaps one element, and reconnects seamlessly.
- Tier
- CSS
- Dependencies
- None
- Duration
- 4.2 s, loops
- Categories
- Data and progress
- Use cases
- Security and trust, Workflow and approvals
- Industries
- SaaS and software, Security and identity
- Style
- Technical · light stroke
- Set
- credential
- Tags
- rotatecirclegeometricminimalline
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-credential-rotate" data-pulsar="credential-rotate" viewBox="0 0 160 96"><circle cx="64" cy="48" r="20" stroke="currentColor" stroke-width="2" opacity=".6"></circle><circle cx="64" cy="48" r="3" fill="currentColor" opacity=".6"></circle><g class="credential-rotate-key"><circle cx="96" cy="48" r="20" stroke="var(--pulsar-accent, currentColor)" stroke-width="2.5"></circle><circle cx="96" cy="48" r="3" fill="var(--pulsar-accent, currentColor)"></circle><line x1="96" x2="96" y1="28" y2="34" stroke="var(--pulsar-accent, currentColor)" stroke-linecap="round" stroke-width="2"></line></g></svg>
animation.css
.pulsar-credential-rotate {
display: block;
overflow: visible;
}
.pulsar-credential-rotate .credential-rotate-key {
transform-origin: 96px 48px;
animation: credential-rotate-key-anim 4200ms cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes credential-rotate-key-anim {
0% {
transform: translateX(0) rotate(0deg);
opacity: 1;
}
30% {
transform: translateX(24px) rotate(180deg);
opacity: 0.2;
}
45% {
transform: translateX(24px) rotate(180deg);
opacity: 0;
}
60% {
transform: translateX(0) rotate(360deg);
opacity: 1;
}
100% {
transform: translateX(0) rotate(360deg);
opacity: 1;
}
}
@media (prefers-reduced-motion: reduce) {
.pulsar-credential-rotate * {
animation: none !important;
}
}