Lets perform calculations when specifying CSS property values. Allowed operators are +,-,
*, /. Binaries + and - must be surrounded by whitespace like .demo{margin-left: calc(8px + -50%);}.
Allows assign generated image to appropriates css properties.
You must point at least two colors. First color defines initial color of gradient. Last color defines last color of gradient.
Allows to assign color to appropriates css properties using color model.
function | explanation |
rgb(r,g,b) | defines colors using the RGB model
- r - red component, value from 0 to 255
- g - green component, value from 0 to 255
- b - blue component, value from 0 to 255
|
rgba(r,g,b,a) | defines colors using the RGBA model
- r - red component, value from 0 to 255
- g - green component, value from 0 to 255
- b - blue component, value from 0 to 255
- a - alpha component, value from 0.0 (fully transparent) to 1.0 (fully opaque)
|
hsl(h,s,l) |
defines colors using the HSL model
- h - hue, a degree on the color wheel (from 0 to 360), where 0 (or 360) is red, 120 is green, 240 is blue
- s - saturation, 0% is a shade of gray and 100% is the full color
- l - lightness, 0% is black, 50% is normal, and 100% is white
|
hsl(h,s,l) |
defines colors using the HSLA model
- h - hue, a degree on the color wheel (from 0 to 360), where 0 (or 360) is red, 120 is green, 240 is blue
- s - saturation, 0% is a shade of gray and 100% is the full color
- l - lightness, 0% is black, 50% is normal, and 100% is white
- a - alpha component, value from 0.0 (fully transparent) to 1.0 (fully opaque)
|