@akaustav/ngx-scroll-to
Version:
A simple Angular 12 plugin enabling you to smooth scroll to any element on your page and enhance scroll-based features in your app. This is a fork from @nicky-lenaers/ngx-scroll-to that adds support for Angular 12.
12 lines (11 loc) • 622 B
TypeScript
/** Named Easing Function */
export declare type ScrollToAnimationEasing = 'easeInQuad' | 'easeOutQuad' | 'easeInOutQuad' | 'easeInCubic' | 'easeOutCubic' | 'easeInOutCubic' | 'easeInQuart' | 'easeOutQuart' | 'easeInOutQuart' | 'easeInQuint' | 'easeOutQuint' | 'easeInOutQuint' | 'easeOutElastic';
/**
* The Easing Function controlling the Easing
* Animation over Time.
*/
export declare type ScrollToAnimationEasingFunction = (time: number) => number;
/** The collection of named Easing Functions */
export interface ScrollToAnimationEasingCollection {
[key: string]: ScrollToAnimationEasingFunction;
}