Skip to content

PostClickMove

PostClickMove = { direction: "up" | "down" | "left" | "right"; duration: number; easing?: Easing; padding?: number; } | { duration: number; easing?: Easing; x: number; y: number; }

Defined in: types.ts:304

Camera pan to perform after a click completes.

Direction-based: the camera shifts by the element’s bounding-box size (in output pixels) plus optional padding (output pixels, applied to each side) in the given direction.

Pixel-based: the camera shifts by explicit x / y output-pixel offsets (negative values pan in the opposite direction).

{ direction: "up" | "down" | "left" | "right"; duration: number; easing?: Easing; padding?: number; }

direction: "up" | "down" | "left" | "right"

duration: number

optional easing?: Easing

optional padding?: number

Output pixels added to each side of the element rect before computing the shift.


{ duration: number; easing?: Easing; x: number; y: number; }

duration: number

optional easing?: Easing

x: number

Horizontal camera shift in output pixels (negative = left).

y: number

Vertical camera shift in output pixels (negative = up).