mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
20 lines
582 B
TypeScript
20 lines
582 B
TypeScript
// Type definitions for jump.js 1.0
|
|
// Project: https://github.com/callmecavs/jump.js
|
|
// Definitions by: rhysd <https://rhysd.github.io>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export = jump;
|
|
|
|
declare function jump(target: string | Element | number, opts?: jump.Options): void;
|
|
|
|
declare namespace jump {
|
|
type TransitionFunc = (t: number, b: number, c: number, d: number) => number;
|
|
interface Options {
|
|
duration?: number;
|
|
offset?: number;
|
|
callback?(): void;
|
|
easing?: TransitionFunc;
|
|
a11y?: boolean;
|
|
}
|
|
}
|