expose CSS timing function string
This commit is contained in:
@@ -18,6 +18,8 @@
|
|||||||
[PREV]: showPrevPage
|
[PREV]: showPrevPage
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export let timingFunction = "ease-in-out";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable Next/Prev arrows
|
* Enable Next/Prev arrows
|
||||||
*/
|
*/
|
||||||
@@ -213,6 +215,7 @@
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="sc-carousel__pages-container"
|
class="sc-carousel__pages-container"
|
||||||
|
style="transition-timing-function: {timingFunction};"
|
||||||
use:swipeable="{{ thresholdProvider: () => pageWidth/3 }}"
|
use:swipeable="{{ thresholdProvider: () => pageWidth/3 }}"
|
||||||
on:start={handleSwipeStart}
|
on:start={handleSwipeStart}
|
||||||
on:move={handleSwipeMove}
|
on:move={handleSwipeMove}
|
||||||
@@ -276,7 +279,6 @@
|
|||||||
.sc-carousel__pages-container {
|
.sc-carousel__pages-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex; /* to put child elements in one row */
|
display: flex; /* to put child elements in one row */
|
||||||
transition-timing-function: ease-in-out;
|
|
||||||
transition-property: transform;
|
transition-property: transform;
|
||||||
}
|
}
|
||||||
.sc-carousel__arrow-container {
|
.sc-carousel__arrow-container {
|
||||||
|
|||||||
Reference in New Issue
Block a user