Imgix APIsRendering APIDrop ShadowDrop Shadow Elevation

Drop Shadow Elevation

drop-shadow-elevation

The drop-shadow-elevation parameter sets how high above the horizon the light sits, from 5 to 90 degrees. It defaults to 45.

A low elevation is a late-afternoon sun: the shadow stretches far across the floor. A high elevation is overhead light at noon: the shadow sits tight under the subject. This is the main control over how long the shadow is.

A low elevation can grow the canvas considerably, since the output has to hold the whole stretched shadow.

It is read only by drop-shadow-type=cast, and values are clamped to 5-90.

drop-shadow-elevation=20 stretches the shadow
sandbox-demo
drop-shadow-elevation=75 keeps it tight
sandbox-demo