|
|
|
@@ -8,7 +8,14 @@ class IHKMHSlider { |
|
|
|
this.slides = section.children(); |
|
|
|
this.slider = new Slider(section); |
|
|
|
this.stringLength = 0; |
|
|
|
|
|
|
|
this.settings = { |
|
|
|
loop: true, |
|
|
|
autoplay: true, |
|
|
|
infinite: true, |
|
|
|
autoplaySpeed: 1000, |
|
|
|
animationSpeed: 600, |
|
|
|
startSlide: 1, |
|
|
|
}; |
|
|
|
this.slider.section.on('in-viewport slide-change', () => { |
|
|
|
const curr = this.slider.currentSlide; |
|
|
|
if (this.slides[curr].hasCounter) { |
|
|
|
|