Ver código fonte

WIP Slider autoplay

bugfix/marketinghero
Lukas Zimmer 2 anos atrás
pai
commit
05be956794
1 arquivos alterados com 8 adições e 1 exclusões
  1. +8
    -1
      gfi-ihk-2024/stories/sections/marketingheader/marketingheaderslider.js

+ 8
- 1
gfi-ihk-2024/stories/sections/marketingheader/marketingheaderslider.js Ver arquivo

@@ -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) {


Carregando…
Cancelar
Salvar