#69 : Update readme
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user