UNPKG

@paulvmoreau/ngx-scroll-to

Version:

A simple Angular 4+ 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' scroll to module that supports angular 10 and angular 11

12 lines (11 loc) 611 B
/** 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; }