expose slide transition timing function
This commit is contained in:
@@ -215,7 +215,6 @@
|
|||||||
>
|
>
|
||||||
<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}
|
||||||
@@ -224,6 +223,7 @@
|
|||||||
style="
|
style="
|
||||||
transform: translateX({offset}px);
|
transform: translateX({offset}px);
|
||||||
transition-duration: {_duration}ms;
|
transition-duration: {_duration}ms;
|
||||||
|
transition-timing-function: {timingFunction};
|
||||||
"
|
"
|
||||||
bind:this={pagesElement}
|
bind:this={pagesElement}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user