embla-carousel
Version:
A lightweight carousel library with fluid motion and great swipe precision
12 lines (11 loc) • 352 B
TypeScript
export type LimitType = {
min: number;
max: number;
length: number;
constrain: (n: number) => number;
reachedAny: (n: number) => boolean;
reachedMax: (n: number) => boolean;
reachedMin: (n: number) => boolean;
removeOffset: (n: number) => number;
};
export declare function Limit(min?: number, max?: number): LimitType;