Racehorse
    Preparing search index...

    Interface ScrollToElementOptions

    Options of the scrollToElement function.

    interface ScrollToElementOptions {
        animation?: Partial<Animation>;
        paddingBottom?: number;
        paddingTop?: number;
        signal?: AbortSignal;
    }
    Index

    Properties

    animation?: Partial<Animation>

    The animation that the scroll should use. By default, no animation is applied and an element is centered instantly.

    paddingBottom?: number

    Bottom scroll padding.

    0
    
    paddingTop?: number

    Top scroll padding.

    0
    
    signal?: AbortSignal

    The signal that cancels the animation.