Imgix APIsVideo APIFillFill Image Motion Align

Fill Image Motion Align

fill-image-motion-align

Sets the focal point for the fill-image-motion effect. For zoom motions, the image pushes toward or pulls back from this point. For pan motions, the focal point anchors the cross-axis — a panright keeps the vertical position at the focal point while gliding horizontally.

fill-image-motion-align accepts a vertical value (top, middle, bottom) and a horizontal value (left, center, right) as a comma-separated pair. Values are order-independent. The default is middle,center.

ValueDescription
top,leftZoom toward or pan around the top-left corner
top,centerFavor the top-center of the image
top,rightFavor the top-right corner
middle,leftFavor the vertical center, left edge
middle,centerCentered (default)
middle,rightFavor the vertical center, right edge
bottom,leftFavor the bottom-left corner
bottom,centerFavor the bottom-center
bottom,rightFavor the bottom-right corner

For pixel-precise control, use fill-image-motion-x and fill-image-motion-y instead — they override -align on each axis independently.