UNPKG

aero-slider

Version:

A lightweight, CSS-first slider library for the modern web

25 lines (24 loc) • 912 B
import type { SliderCore } from "./slider.js"; export declare function navigation(core: SliderCore): { refresh(): void; }; export declare function pagination(core: SliderCore): { build(): void; refresh(): void; }; export declare function keyboard(core: SliderCore): void; export declare function autoplay(core: SliderCore): { start: () => void; stop: () => void; hold: (reason: string) => void; release: (reason: string) => void; /** A continuous lap is moving the slides right now. */ drifting: () => boolean; /** Ends a lap without handing it back, for when the layout is about to change under it. */ reset(): void; /** goTo() is about to measure from the scroll offset. True if a lap was handed back. */ interrupt(): boolean; /** A scroll is under way, so wait for it to settle rather than the fallback. */ scrolled(): void; settled(): void; };