Update docs

This commit is contained in:
Vadim
2021-03-20 19:08:28 +03:00
parent db649e0074
commit f29aedd479
9 changed files with 51 additions and 29 deletions

View File

@@ -18,7 +18,10 @@
[PREV]: showPrevPage
}
export let timingFunction = "ease-in-out";
/**
* CSS animation timing function
*/
export let timingFunction = 'ease-in-out';
/**
* Enable Next/Prev arrows

View File

@@ -2,6 +2,11 @@
import Carousel from './Carousel.svelte'
import { NEXT } from '../../direction'
/**
* CSS animation timing function
*/
export let timingFunction = "ease-in-out";
/**
* Enable Next/Previos arrows
*/
@@ -72,6 +77,7 @@
{autoplayDuration}
{autoplayDirection}
{dots}
{timingFunction}
on:pageChange={
event => console.log(`Current page index: ${event.detail}`)
}

View File

@@ -2,6 +2,11 @@
import Carousel from './Carousel.svelte'
import { NEXT } from '../../direction'
/**
* CSS animation timing function
*/
export let timingFunction = "ease-in-out";
/**
* Enable Next/Previos arrows
*/
@@ -66,6 +71,7 @@
{autoplayDuration}
{autoplayDirection}
{dots}
{timingFunction}
let:showPrevPage
let:showNextPage
>

View File

@@ -2,6 +2,11 @@
import Carousel from './Carousel.svelte'
import { NEXT } from '../../direction'
/**
* CSS animation timing function
*/
export let timingFunction = "ease-in-out";
/**
* Enable Next/Previos arrows
*/
@@ -70,6 +75,7 @@
{autoplayDuration}
{autoplayDirection}
{dots}
{timingFunction}
let:currentPageIndex
let:pagesCount
let:showPage