#69 : Update readme

This commit is contained in:
Vadim
2021-09-17 10:49:19 +03:00
parent 73a985fcb8
commit e10ad68bb4
2 changed files with 3 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ npm install svelte-carousel -D
import { onMount } from 'svelte'; import { onMount } from 'svelte';
let Carousel; // for saving Carousel component class 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 () => { onMount(async () => {
const module = await import('svelte-carousel'); const module = await import('svelte-carousel');
Carousel = module.default; Carousel = module.default;
@@ -91,6 +91,8 @@ npm install svelte-carousel -D
| `dots` | `boolean` | `true` | Current page indicator dots | | `dots` | `boolean` | `true` | Current page indicator dots |
| `timingFunction` | `string` | `'ease-in-out'` | CSS animation timing function | | `timingFunction` | `string` | `'ease-in-out'` | CSS animation timing function |
| `swiping` | `boolean` | `true` | Enables swiping | | `swiping` | `boolean` | `true` | Enables swiping |
| `particlesToShow` | `number` | `1` | Number of elements to show |
| `particlesToScroll` | `number` | `1` | Number of elements to scroll |
## Events ## Events

View File

@@ -8,10 +8,6 @@
import { swipeable } from '../../actions/swipeable' import { swipeable } from '../../actions/swipeable'
import { hoverable } from '../../actions/hoverable' import { hoverable } from '../../actions/hoverable'
import { tappable } from '../../actions/tappable' import { tappable } from '../../actions/tappable'
import {
addResizeEventListener,
removeResizeEventListener,
} from '../../utils/event'
import { import {
applyParticleSizes, applyParticleSizes,
getCurrentPageIndexByCurrentParticleIndex, getCurrentPageIndexByCurrentParticleIndex,