/** * @param percent Percent completed of the animation * @param elapsedTime Time elapsed since the animation began, in ms * @param startValue The starting value before the animation * @param valueChange Total change compared to the starting value * @param duration Duration of the animation * @returns Decimal indicating how close the animation is to the end value * (0 = start, 1 = finished, 1.2 = 20% over the end value, think "bounce" effects) */ export declare type ScrollchorEasingFunction = (percent: number, elapsedTime: number, startValue: number, valueChange: number, duration: number) => number; export interface AnimateConfig { /** * Additional pixels to scroll relative to the target element (supports negative values) */ offset: number; /** * Length of the animation in ms */ duration: number; /** * Easing function to calculate the animation steps. Pass a function that matches the exported * interface for a custom easing. */ easing: ScrollchorEasingFunction; }