How it works
The dual ring loader stacks two arcs inside each other and spins them against each other, so it reads as busier and more mechanical than a plain spinner. The outer ring shows its top and bottom borders in Color; the inner ring sits inset by 22% of the size and shows its left and right borders in Inner color. With transparent borders elsewhere, each ring looks like a pair of opposing brackets.
Both rings share one spin keyframe. The outer ring runs at the full Duration, while the inner ring runs at 75% of it with animation-direction: reverse. That speed mismatch is what makes the pattern keep changing instead of locking into a repeating shape.
It suits dashboards, dev tools and brand-heavy splash screens where a second accent color helps. Parameters: Size, Thickness, Color, Inner color, Duration and Easing. The default ease-in-out gives each ring a little acceleration and braking, which looks deliberate at 1.2s; switch to linear if you want a calmer, constant motion. Keep Thickness at 3 to 5px for sizes between 40 and 80px, since thick borders on the inner ring quickly eat the gap between the two.
Two absolutely positioned children animate only transform, so this stays cheap even at 160px. The wrapper carries role="status" and aria-label="Loading"; if the load takes noticeably longer than expected, update that label or add visible text explaining what is happening.
Why do the two rings turn at different speeds?
The inner ring uses 75% of the outer ring's duration and runs in reverse. If both shared the same timing, the combined shape would repeat every turn and look like one rigid object rotating. With a 4:3 ratio the arcs line up in a different spot each cycle, which keeps the eye interested without adding more elements.
Can I use the same color for both rings?
Yes, set Inner color to the same value as Color. The effect still works because the rings show different sides (top and bottom on the outer, left and right on the inner) and move in opposite directions. A single color often looks more restrained in a product UI, while two colors suit landing pages and games.
How do I change the gap between the rings?
The inner ring is positioned with inset equal to 22% of Size. In the copied CSS, change the inset value on the inner element: a larger inset makes a smaller inner ring and a wider gap. If you raise Thickness a lot, increase the inset too, otherwise the borders of the two rings start to touch.