4.0.4 • Published 6 months ago
@types/zenscroll v4.0.4
Installation
npm install --save @types/zenscroll
Summary
This package contains type definitions for zenscroll (https://zengabor.github.io/zenscroll/).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/zenscroll.
index.d.ts
// Type definitions for zenscroll 4.0
// Project: https://zengabor.github.io/zenscroll/
// Definitions by: Hamed Fathi <https://github.com/HamedFathi>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare const zenScroll: ZenScroll.zenscroll;
export = zenScroll;
export as namespace zenScroll;
declare namespace ZenScroll {
interface setupOption {
defaultDuration: number;
edgeOffset: number;
}
interface zenscroll {
setup(defaultDuration?: number, edgeOffset?: number): setupOption;
to(elem: HTMLElement, duration?: number, onDone?: () => void): void;
toY(targetY: number, duration?: number, onDone?: () => void): void;
intoView(elem: HTMLElement, duration?: number, onDone?: () => void): void;
center(elem: HTMLElement, duration?: number, offset?: number, onDone?: () => void): void;
stop(): void;
moving(): boolean;
getY(): number;
getTopOf(elem: HTMLElement): number;
createScroller(scrollContainer: HTMLElement, defaultDuration?: number, edgeOffset?: number): zenscroll;
}
}
declare global {
interface Window {
noZensmooth: boolean;
}
}
Additional Details
- Last updated: Thu, 08 Jul 2021 22:42:26 GMT
- Dependencies: none
- Global values:
zenScroll
Credits
These definitions were written by Hamed Fathi.