소스 검색

fix slider auto animation

bugfix/marketinghero
Florian Eisenmenger 2 년 전
부모
커밋
303350e46c
1개의 변경된 파일2개의 추가작업 그리고 10개의 파일을 삭제
  1. +2
    -10
      gfi-ihk-2024/stories/sections/marketingheader/marketingheaderslider.js

+ 2
- 10
gfi-ihk-2024/stories/sections/marketingheader/marketingheaderslider.js 파일 보기

@@ -5,23 +5,15 @@ import Slider from "../slider/slider";
class IHKMHSlider {
constructor(section) {
this.section = section.addClass('initiated');
this.slides = section.children();
this.slider = new Slider(section);
this.stringLength = 0;
this.settings = {
this.slider.settings = {
loop: true,
autoplay: true,
infinite: true,
autoplaySpeed: 1000,
autoplaySpeed: 7000,
animationSpeed: 600,
startSlide: 1,
};
this.slider.section.on('in-viewport slide-change', () => {
const curr = this.slider.currentSlide;
if (this.slides[curr].hasCounter) {
this.startCounter(curr);
}
})
}
}



불러오는 중...
취소
저장