Presets

Arc spinner (SVG progress circle)

An SVG arc that lengthens and shortens while it rotates, the Material-style progress circle.

CSSTailwindReactGIFMP4
trigger: loop
00.000 / 2.100s
timing
style

npm i motion · the component uses motion/react

How it works

The arc spinner is the Material Design style circular loader: a round-capped arc that stretches out, shrinks back, and turns the whole time. It is an SVG with a 50 by 50 viewBox and one circle of radius 20 with no fill and a round stroke-linecap.

Two animations combine. The svg element rotates a full turn on linear easing, slightly slower than the arc (1.4 times Duration). The circle runs a dash keyframe on stroke-dasharray and stroke-dashoffset: it starts as a 1-unit dot, grows to a 90-unit arc at 50% while the offset moves to -35, and finishes at offset -124 so the tail catches up with the head. Because the two timings differ, the arc lands in a new place each cycle.

This is a good default for apps that already follow Material or Android conventions, and for any place where a spinner should feel more alive than a constant ring. You can tune Size, Thickness, Color, Duration and Easing. Thickness is in viewBox units, so 4 means 4/50 of the size; it scales cleanly when you change Size. Values from 3 to 5 suit most uses.

Stroke dash animations are repainted by the browser rather than composited, but the shape is tiny, so cost is low. The svg carries role="status" and aria-label="Loading". Avoid shrinking Duration below about 1s: the stretching arc becomes hard to follow and reads as nervous.

Why does Thickness not use pixels?

Thickness sets stroke-width inside the SVG's 50 by 50 viewBox, so it is relative to the drawing, not the screen. A value of 4 is 8% of the size whether the spinner is 24px or 160px. That keeps proportions identical when you change Size, which is the main reason to draw this loader in SVG instead of with borders.

How do I make the arc longer?

Edit the dash keyframe in the copied CSS. The 90 in stroke-dasharray at 50% and 100% is the maximum arc length in user units; the full circle is about 126 units (2 times pi times 20). Raising it to 100 gives a longer arc, but keep a gap or the arc will close into a full ring.

Can I use this spinner in React without an SVG file?

Yes. The React tab outputs a component that renders the svg and circle inline and animates them with Motion from motion/react, so there is no separate asset or stylesheet. Size, color and stroke width appear as plain values in the JSX, and you can turn any of them into props.

relatedMore like this

all loaders →
01 Spinner loop
02 Dual ring loop
03 Bouncing dots loop
04 Typing indicator loop
05 Equalizer bars loop
06 Progress bar loop

Export

format
height

480p max · small watermark · 3 per day · remove limits