From e10ad68bb42c0166eac55488eb82596afe9bb376 Mon Sep 17 00:00:00 2001 From: Vadim Date: Fri, 17 Sep 2021 10:49:19 +0300 Subject: [PATCH] #69 : Update readme --- README.md | 4 +++- src/components/Carousel/Carousel.svelte | 4 ---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bc48d86..63a9a4d 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ npm install svelte-carousel -D import { onMount } from 'svelte'; let Carousel; // for saving Carousel component class - let carousel; // for calling methods of carousel instance + let carousel; // for calling methods of the carousel instance onMount(async () => { const module = await import('svelte-carousel'); Carousel = module.default; @@ -91,6 +91,8 @@ npm install svelte-carousel -D | `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 | ## Events diff --git a/src/components/Carousel/Carousel.svelte b/src/components/Carousel/Carousel.svelte index eddca6f..21f64a9 100644 --- a/src/components/Carousel/Carousel.svelte +++ b/src/components/Carousel/Carousel.svelte @@ -8,10 +8,6 @@ import { swipeable } from '../../actions/swipeable' import { hoverable } from '../../actions/hoverable' import { tappable } from '../../actions/tappable' - import { - addResizeEventListener, - removeResizeEventListener, - } from '../../utils/event' import { applyParticleSizes, getCurrentPageIndexByCurrentParticleIndex,