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.
It is documented as part of the Scalable Vector Graphics specification.
Syntax
/* Usage Example */
circle.dot {
fill: var(--accent);
/* Sets the radius to 10 pixels */
r: 10px;
transition: r 0.3s ease;
}
circle.dot:hover{
r: 15px;
}
/* Global values */
r: inherit;
r: initial;
r: revert;
r: revert-layer;
r: unset;
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.
43+
69+
9+
79+