Imgix APIsRendering APIReflectionReflection Offset

Reflection Offset

reflection-offset

The reflection-offset parameter sets the gap between the subject and the top of its reflection. It defaults to 0, where the two touch.

A whole number is pixels, multiplied by dpr. A decimal between -1.0 and 1.0 is a fraction of the subject’s height. A negative value overlaps the reflection with the subject.

With drop-shadow-type=float, the reflection is automatically placed below the hover gap, so the two effects agree without being tuned against each other — in that case the default offset is twice the float shadow’s gap.

The default, touching
sandbox-demo
reflection-offset=40 lifts the subject
sandbox-demo