#69 : Update demo

This commit is contained in:
Vadim
2021-09-17 10:54:17 +03:00
parent e10ad68bb4
commit 2b2eca4cdd

View File

@@ -29,25 +29,23 @@
<Divider />
## Multiple items!anchorId:features-multiple-items;
<Carousel>
{#each _.chunk(colors, 3) as colorsChunk, chunkIndex (chunkIndex)}
<div style="display: flex;">
{#each colorsChunk as { color, text } (color)}
<Carousel
particlesToShow={3}
particlesToScroll={3}
>
{#each colors as { color, text } (color)}
<Color {color} {text} />
{/each}
</div>
{/each}
</Carousel>
```jsx
<Carousel>
{#each _.chunk(colors, 3) as colorsChunk, chunkIndex (chunkIndex)}
<div style="display: flex;">
{#each colorsChunk as { color, text } (color)}
<Carousel
particlesToShow={3}
particlesToScroll={3}
>
{#each colors as { color, text } (color)}
<Color {color} {text} />
{/each}
</div>
{/each}
</Carousel>
```
@@ -276,6 +274,8 @@ Import component:
| `dots` | `boolean` | `true` | Current page indicator dots |
| `timingFunction` | `string` | `'ease-in-out'` | CSS animation timing function |
| `swiping` | `boolean` | `true` | Enables swiping |
| `particlesToShow` | `number` | `1` | Number of elements to show |
| `particlesToScroll` | `number` | `1` | Number of elements to scroll |
<Divider />