gradients
Anywhere an image can be use
liner-gradient
Radial-gradient
Repeating-linear-gradient(stripes)
Repeating-radial-gradient
(experimental conic gradients- these are sicks)
Syntax
Linear
Rainbow
Color-Stop
[<length || <percentage]?
percent is relative to image size, can have it be >100% or negative
If you have same colorstop for 2 colors it will be hard stops
Color-hint
where do you want the mid-point between two colors
Direction
to top | bottom | left | right | top left | top right | bottom left | bottom right
0deg,
Radial Gradient
Shape can be ellipse
or circle
Size has 2 values for ellipse and use percentages only for ellipse
Can do various positioning of circle in background with sharp edges or gradual changes, can background repeat for like spotted pattern
Repeated Radial Gradient
Gradient repeats in circle outward, use at 400px
to get base size
Last updated