r

Sets the radius of an SVG <circle> element. This property allows you to control the size of circles directly from your CSS, which is great for hover effects or animations.

Quick example

circle.dot {
  fill: var(--accent);
  /* Sets the radius to 10 pixels */
  r: 10px;
  transition: r 0.3s ease;
}

circle.dot:hover {
  r: 15px;
}

Quick facts

Initial value
0
Inherited
No
Applies to
SVG <circle> elements
Animation type
byComputedValueType

r Browser Support

Widely available Since 2020 96% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2020.

Safe to use without fallbacks.

43+
69+
9+
79+
ESC