Options for the scroll-self animation

interface ScrollingOptions {
    preserveX?: boolean;
    preserveY?: boolean;
    scrollableOffset?: [x: number | MultiUnitPlacementX, y: number | MultiUnitPlacementY];
    targetOffset?: [x: number | MultiUnitPlacementX, y: number | MultiUnitPlacementY];
}

Properties

preserveX?: boolean

if true, the scrolling container will not scroll horizontally

preserveY?: boolean

if true, the scrolling container will not scroll vertically

scrollableOffset?: [x: number | MultiUnitPlacementX, y: number | MultiUnitPlacementY]

determines the intersection point of the scrolling container with respect to its top-left bound

targetOffset?: [x: number | MultiUnitPlacementX, y: number | MultiUnitPlacementY]

determines the intersection point of the scroll target with respect to its top-left corner