diff --git a/src/docs/Carousel.svx b/src/docs/Carousel.svx index a5b8041..68bfabe 100644 --- a/src/docs/Carousel.svx +++ b/src/docs/Carousel.svx @@ -129,6 +129,39 @@ +## Marquee mode!anchorId:marquee-mode; + + {#each colors as { color, text } (color)} + + {/each} + + +```jsx + + {#each colors as { color, text } (color)} + + {/each} + +``` + + + ## Lazy loading of images!anchorId:features-lazy-loading; { this.reset() - const stepMs = Math.min(STEP_MS, this._autoplayDuration) + const stepMs = Math.min(STEP_MS, Math.max(this._autoplayDuration, 1)) let progress = -stepMs this._interval = setIntervalImmediate(async () => {