CSS-Zone

Dashed ring

Dual dashed circles spinning in opposite directions. Practical example for loaders and state indicators with live preview, HTML structure, and production-ready CSS you can integrate quickly.

Preview

HTML + CSS

<div class="ring-dash"></div>

<style>
.ring-dash {
  width:96px; height:96px; border-radius:50%;
  border:6px dashed #5b8def;
  box-shadow: 0 0 20px rgba(91, 141, 239, 0.25);
  animation: ring-dash-rotate 1.6s linear infinite; position:relative;
}
.ring-dash::after{
  content:''; position:absolute; inset:16px; border-radius:50%;
  border:4px solid rgba(154,107,255,.65); border-right-color:transparent;
  animation: ring-dash-reverse 1.1s linear infinite;
}
@keyframes ring-dash-rotate{to{transform:rotate(360deg);}}
@keyframes ring-dash-reverse{to{transform:rotate(-360deg);}}
</style>

What the Dashed ring pattern demonstrates

Dashed ring is a reusable CSS animation pattern that can be integrated into modern UI without external dependencies. The example includes HTML structure and motion styles that are easy to scale for production components.

When this animation pattern is a good fit

Use this effect for state indication, visual focus, or lightweight micro-interactions that support content clarity. Motion should reinforce hierarchy, so keep speed, contrast, and density aligned with your interface goals.

How to implement it in production safely

Copy the snippet, adapt spacing and timing to your system tokens, and test behavior on mobile and low-power devices. Add reduced-motion support to keep the component accessible while preserving the same functional meaning.