Every line of 'owl carousel autoplay' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
16 autoPlay() { 17 this._handle = setTimeout(() => this.nextPic(), 3000) 18 }
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code
29 autoPlay() { 30 this._handle = setTimeout(() => this.nextFrame(), 3000); 31 }
6 function autoplay() { 7 $('.carousel').carousel('next'); 8 setTimeout(autoplay,4500); 9 }
42 autoPlay() { 43 const autoplayInterval = this.props.autoplayInterval; 44 if (this.isSwiping) return; 45 this.autoPlayTimer && clearInterval(this.autoPlayTimer); 46 this.autoPlayTimer = setInterval(() => { 47 if (this.isLoopEnd()) return; 48 this.slideTo(this.index, SWIPE_LEFT); 49 }, parseFloat(autoplayInterval)); 50 }
142 function autoPlay (slider) { 143 const next = slider.currentIndex + 1 144 setTimeout(() => slider.slideTo(next), 0) 145 slider.playTimer = setTimeout(() => autoPlay(slider), slider.interval + TRANSITION_DURATION) 146 }
134 function autoPlay(){ 135 if(curIndex<len-1){ 136 curIndex++; 137 }else{ 138 curIndex=0 139 } 140 oldLeftVal = $JList.css('left'); 141 if(curIndex>2 && curIndex<len-2){// 前3个和后3个不偏移 142 newLeftVal = parseInt(oldLeftVal)-parseInt(itemLength); 143 } 144 if(curIndex<3){ 145 newLeftVal = 0; 146 } 147 $JList.animate({'left':newLeftVal}); 148 $JListItem.removeClass('active'); 149 $JListItem.eq(curIndex).addClass("active"); 150 console.log('curIndex',curIndex,oldLeftVal,newLeftVal) 151 }
63 next(options?: any[]) { 64 this.trigger('next.owl.carousel', options); 65 }
112 play() { 113 this.context.playing = true; 114 this.setAutoplayTimer(); 115 }
58 get autoplay(): boolean { 59 return this._options.autoplay; 60 }
12 componentDidMount() { 13 super.componentDidMount(); 14 15 this.carousel = $(this.getCarouselWrapper()).owlCarousel(this.props); 16 }