@adoratorio/hades
Version:
A smooth scrollbar based on Hermes, scroll down 'till hell
46 lines • 961 B
TypeScript
import Aion from '@adoratorio/aion';
export declare enum DIRECTION {
UP = 1,
DOWN = -1,
INITIAL = 0
}
export interface HadesOptions {
root: HTMLElement | Window;
easing: Easing;
autoplay: boolean;
aion: Aion | null;
globalMultiplier: number;
touchMultiplier: number;
smoothDirectionChange: boolean;
threshold: Vec2;
invert: boolean;
precision: number;
}
export interface Vec2 {
x: number;
y: number;
}
export interface Timeline {
start: number;
duration: number;
initial: Vec2;
final: Vec2;
current: Vec2;
}
export interface Easing {
mode: Function;
duration: number;
}
export interface HadesPlugin {
id?: string;
name: string;
register?: Function;
wheel?: Function;
preScroll?: Function;
scroll?: Function;
preFrame?: Function;
render?: Function;
destroy?: Function;
scrollTo?: Function;
}
//# sourceMappingURL=declarations.d.ts.map