Merge pull request #20 from Tonton-Blax/main
Expose css timing function
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
|
||||||
*/
|
*/
|
||||||
@@ -221,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}
|
||||||
>
|
>
|
||||||
@@ -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