Imgix APIsRendering APIGradient and FadeGradient Hue

Gradient Hue

gradient-hue

The gradient-hue parameter sets which way around the hue wheel the gradient travels between two colors. It follows the CSS Color 4 rules and defaults to shorter.

ValuePath taken
shorter (default)The shorter way around the wheel
longerThe longer way, sweeping through the opposite hues
increasingThe path along which the hue angle increases
decreasingThe path along which the hue angle decreases

It is only read in the cylindrical color spaces, so gradient-cs must be hsl, hsv, lch or oklch. An unrecognized value falls back to shorter.

gradient-hue=shorter, the default
sandbox-demo
gradient-hue=longer sweeps the other way
sandbox-demo