A gradient is essentially a special image value that can be used anywhere a background-image is accepted. CSS provides three gradient functions — linear, radial, and conic — corresponding to three visual effects: "transitioning along a straight line", "spreading outward from a point", and "transitioning in rotation around a point".
at 30% 30% determines the position of the center; when no shape is specified it defaults to an ellipse matching the container's proportions, and writing circle explicitly forces a perfect circle.
conic-gradient: Conic Gradients
Colors transition in rotation around the center point — the most direct way to draw pie charts, hue wheels, and loading progress rings.
Each color can be followed by a position percentage. When two adjacent color stops use the same position value, the transition completes instantly, creating a crisp "hard edge" — commonly used to simulate stripes or segmented progress bars.
background supports stacking multiple background layers separated by commas; gradients and real images can be mixed — a common pattern is overlaying a semi-transparent gradient mask on top of an image so that text stays readable on any background image:
Clipping a gradient into the shape of the text is a common technique for heading-level visual effects; it relies on background-clip: text combined with a transparent text color: