@types/zenscroll
TypeScript icon, indicating that this package has built-in type declarations

4.0.4 • Public • Published

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

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: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Hamed Fathi.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/zenscroll

Weekly Downloads

4,056

Version

4.0.4

License

MIT

Unpacked Size

4.49 kB

Total Files

5

Last publish

Collaborators

  • types