@yourwishes/carousel
Version:
A modern, flexible and performant carousel for the time concious developer.
58 lines • 1.66 kB
TypeScript
import { WithContainer, WithOptionsPartial, WithSlider } from "./types";
export declare type Slider = ReturnType<typeof sliderCreate>;
declare type SliderCreateParams = WithOptionsPartial & WithContainer;
export declare const sliderCreate: (params: SliderCreateParams) => {
options: {
vertical: boolean;
infinite: boolean;
snap: boolean;
edges: boolean;
classes: {
init: string;
grabbing: string;
visible: string;
target: string;
};
velocity: {
weight: number;
friction: number;
};
autoplay: {
enabled: boolean;
frequency: number;
};
properties: {
x: string;
y: string;
slideHeight: string;
slideWidth: string;
slide: string;
};
};
slides: {
elements: HTMLElement[];
order: HTMLElement[];
count: number;
};
state: import("./state").SliderState;
events: {
mouseDown: () => void;
mouseUp: () => void;
mouseMove: () => void;
mouseLeaveWindow: () => void;
dimensionsResizeWindow: () => void;
slideSnappingFrame: () => void;
frame: () => void;
};
css: {
dragging: () => void;
movementX: () => void;
movementY: () => void;
slide: () => void;
frame: () => void;
};
autoplay: null;
};
export declare const sliderDispose: (params: WithSlider) => void;
export {};
//# sourceMappingURL=slider.d.ts.map