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