#31 : Update colors, set reversed progress indicator

This commit is contained in:
Vadim
2021-07-03 00:59:25 +03:00
parent a9515edcfd
commit 17e2e60098
4 changed files with 25 additions and 16 deletions

View File

@@ -135,7 +135,7 @@
const progressManager = new ProgressManager({
autoplayDuration,
onValueChange: (value) => {
progressValue = value
progressValue = 1 - value
}
})
@@ -355,6 +355,10 @@
</div>
<style>
:root {
--sc-arrow-size: 2px;
--sc-color-rgb-light-50p: rgba(93, 93, 93, 0.5);
}
.sc-carousel__carousel-container {
display: flex;
width: 100%;
@@ -387,8 +391,8 @@
}
.sc-carousel-progress__container {
width: 100%;
height: 7px;
background-color: lightgray;
height: 5px;
background-color: var(--sc-color-rgb-light-50p);
position: absolute;
bottom: 0;
}