@yourwishes/carousel
Version:
A modern, flexible and performant carousel for the time concious developer.
18 lines • 901 B
TypeScript
import { WithContainer, WithContainerRect, WithOptions, WithSlides, WithSlideVisibleResults, WithState } from "./types";
export declare type SlideList = ReturnType<typeof sliderSlidesFind>;
export declare type SlideVisibleResults = ReturnType<typeof sliderSlidesGetVisible>;
export declare const sliderSlidesFind: (params: WithContainer & WithOptions) => {
elements: HTMLElement[];
order: HTMLElement[];
count: number;
};
export declare const sliderSlidesGetVisible: (params: WithSlides & WithContainerRect) => {
slide: HTMLElement;
box: DOMRect;
result: boolean;
index: number;
}[];
declare type ParamsGetSnapTarget = (WithContainer & WithOptions & WithSlides & WithState & WithSlideVisibleResults & WithContainerRect);
export declare const sliderSlidesGetSnapIndex: (params: ParamsGetSnapTarget) => number;
export {};
//# sourceMappingURL=slides.d.ts.map