From f76fe0b5c61695d12a6289176de83af3fd77866d Mon Sep 17 00:00:00 2001 From: Vadim Date: Sat, 14 Aug 2021 00:42:17 +0300 Subject: [PATCH] #48 : Apply anchor settings --- src/docs/Carousel.svx | 47 ++++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/src/docs/Carousel.svx b/src/docs/Carousel.svx index de863c8..1de47f5 100644 --- a/src/docs/Carousel.svx +++ b/src/docs/Carousel.svx @@ -9,9 +9,9 @@ import colors from './data/colors.json' -# Features +# Features!anchorId:features; -## Single item +## Single item!anchorId:features-single-item; {#each colors as { color, text } (color)} @@ -28,7 +28,7 @@ -## Multiple items +## Multiple items!anchorId:features-multiple-items; {#each _.chunk(colors, 3) as colorsChunk, chunkIndex (chunkIndex)}
@@ -53,7 +53,7 @@ -## Autoplay +## Autoplay!anchorId:features-autoplay; -## Autoplay with duration progress +## Autoplay with duration progress!anchorId:features-autoplay-duration-progress; -## Autoplay with pause on focus +## Autoplay with pause on focus!anchorId:features-autoplay-pause-on-focus; **For desktop** - hover over the carousel to toggle the autoplay. **For touchable devices** - tap the carousel to toggle the autoplay. @@ -132,7 +132,7 @@ -## Lazy loading of images +## Lazy loading of images!anchorId:features-lazy-loading; @@ -161,7 +161,7 @@ -## Arrows customization +## Arrows customization!anchorId:features-arrows-customization; -## Dots customization +## Dots customization!anchorId:features-dots-customization; -## Use case +## Use case!anchorId:features-use-cases; -# Installation +# Installation!anchorId:installation; + ```bash yarn add svelte-carousel ``` @@ -262,7 +263,7 @@ Import component -# Props +# Props!anchorId:props; | Prop | Type | Default | Description | |---------------------------|------------|-----------------|-----------------------------------------------| @@ -281,9 +282,9 @@ Import component -# Events +# Events!anchorId:events; -## `pageChange` +## `pageChange`!anchorId:events-page-change; Is dispatched on page change | Payload field | Type | Description | @@ -302,9 +303,9 @@ Is dispatched on page change -# Slots +# Slots!anchorId:slots; -## `prev` and `next` +## `prev` and `next`!anchorId:slots-prev-next; They are used for customizing prev and next buttons. Slot props: @@ -329,7 +330,7 @@ Slot props: ``` -## `dots` +## `dots`!anchorId:slots-dots; This slot is used for customizing dots appearance. @@ -354,7 +355,7 @@ Slot props: ``` -## Default slot +## Default slot!anchorId:slots-default; This slot takes content for the carousel. @@ -377,9 +378,9 @@ Slot props: -# Methods +# Methods!anchorId:methods; -## `goTo` +## `goTo`!anchorId:methods-go-to; Navigates to a page by index. `(pageIndex, options) => Promise`. Arguments: @@ -406,7 +407,7 @@ Arguments: ``` -## `goToPrev` +## `goToPrev`!anchorId:methods-go-to-prev; Navigates to the previous page. `(options) => Promise`. Arguments: @@ -432,7 +433,7 @@ Arguments: ``` -## `goToNext` +## `goToNext`!anchorId:methods-go-to-next; Navigates to the next page. `(options) => Promise`. Arguments: @@ -521,4 +522,4 @@ Arguments: justify-content: center; padding: 0 20px; } - \ No newline at end of file +