Permalink
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (17 sloc) 630 Bytes

Manipulate the hue, saturation, lightness and opacity of a color value.

hsla-adjust( color, hue-offset, saturation-offset, lightness-offset, alpha-offset )

Parameters

  • color Any valid CSS color value
  • hue-offset The percentage to offset the color hue
  • saturation-offset The percentage to offset the color saturation
  • lightness-offset The percentage to offset the color lightness
  • alpha-offset The percentage to offset the color opacity

Returns

The modified color value.

Examples

color: hsla-adjust( #f00 0 5 5 -10 );