/** * Animations in CSS: tells every slide where it is, as custom properties, * on every frame of a move. * * --gs-p how far the slide is from its resting place, in slides: * -1 is one slide before the active one, 1 one after * --gs-away the same without a sign and not more than `range` * --gs-share how much of the slide is in the view, 0 to 1 * * What to do with them is up to the page. What moves is what is in the * slide, not the slide: that one the slider moves and measures. * * .gs-slide { * perspective: 1200px; * opacity: calc( 1 - var(--gs-away) * 0.6 ); * } * .gs-slide > * { * scale: calc( 1 - var(--gs-away) * 0.2 ); * rotate: y calc( var(--gs-p) * -30deg ); * } * * This styles the slides of the page. What the canvas draws of them is * changed by effects (see `gl/`), `coverflow()` for one. * * createSlider( element, { plugins: [ progress() ] } ); */ import type { Slider } from '../index.js'; /** * @param options Options. * @param options.range Slides further away than this are as far * away as this. */ export declare function progress({ range }?: { range?: number; }): (slider: Slider) => { name: string; slides(): void; frame({ places }: import("../index.js").View): void; destroy(): void; };