loading code fetching the highlighted snippet
A single useSpring drives the ring’s stroke-dashoffset, the dot’s cx, and the line’s x2. No keyframes and no re-render: Motion subscribes to the value and writes each attribute on the channel it belongs to.
useSpring feeds every bound attribute through useTransform, so they stay in lockstep.cx and stroke-dashoffset are CSS properties, so they are
written to element.style.x2 is not a CSS property, so it is written with setAttribute — same value, different channel.cx is a CSS property, so Motion writes it to element.style. x2 is not, so it is written with setAttribute. Same MotionValue, different channels.