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,