Skip to content
Snippets Groups Projects
Commit bf792893 authored by Olivia206's avatar Olivia206
Browse files

wip

parent a4ddf292
No related branches found
No related tags found
No related merge requests found
......@@ -35,9 +35,12 @@ class Carousel {
this.splide.on('autoplay:play', () => {
toggleButton.classList.add('is-active');
console.log(toggleButton)
});
this.splide.on('autoplay:playing', (rate) => {
// toggleButton.classList.add('is-active');
var activeStepButton = this.splide.root.querySelector('.splide__pagination .is-active i');
activeStepButton.style.width = rate * 100 + '%';
});
......
......@@ -39,7 +39,7 @@
display: flex
flex-direction: column-reverse
&__toggle
@include button-reset
// @include button-reset
border: 1px solid $block-testimonials-pagination-background
border-radius: 50%
font-size: 0
......@@ -58,7 +58,7 @@
&:not(.is-active)
+ .splide__pagination
.is-active i
width: 100% !important
width: 100%
.splide__play
&::before
......
......@@ -41,10 +41,10 @@
background-color: $link-color
&__toggle
.splide__toggle__pause
&__pause
@include icon-block(pause)
display: none
.splide__toggle__play
&__play
@include icon-block(play)
display: inline-block
&.is-active
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment