# @types/zenscroll

> TypeScript definitions for zenscroll

Latest version **4.0.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/zenscroll
pnpm add @types/zenscroll
yarn add @types/zenscroll
bun add @types/zenscroll
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.0.4 |
| Published | 2023-11-07 |
| First published | 2017-11-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51496 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/zenscroll
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/zenscroll
- npm.io page: https://npm.io/package/@types/zenscroll

## Recent versions

- 4.0.4 (latest) — 2023-11-07
- 4.0.2 (ts4.3) — 2023-08-30
- 4.0.1 (ts3.6) — 2021-07-08
- 4.0.0 (ts2.0) — 2017-11-09
- 4.0.3 — 2023-10-18

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/zenscroll/index.d.ts)
````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](https://github.com/HamedFathi).

---
_Source: https://npm.io/package/@types/zenscroll · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
