Imgix APIsRendering APIGradient and FadeGradient Radial Size

Gradient Radial Size

gradient-radial-size

The gradient-radial-size parameter sets how far a radial gradient reaches. It defaults to farthest-corner.

ValueReaches
farthest-corner (default)The corner furthest from the centre
farthest-sideThe side furthest from the centre
closest-cornerThe nearest corner
closest-sideThe nearest side
A single pixel radiusThat radius, as a circle
rx,ryThose radii, as an ellipse. Pixels or fractions

These are the CSS keywords and behave as they do there. As in CSS, a single fraction on its own is rejected — give either a pixel radius or a pair.

The default, farthest-corner
sandbox-demo
gradient-radial-size=closest-side
sandbox-demo

An unrecognized value is ignored. Pixel sizes scale with dpr; fractions do not need to.