美文网首页
css3轮播图判断逻辑

css3轮播图判断逻辑

作者: 且听风吟_792d | 来源:发表于2020-06-09 10:13 被阅读0次

    if(this.curIndex == this.curBannerList.length){
    this.refs.swiperContent.style.transition = ""; this.curIndex = 0; this.refs.swiperContent.style.left = -this.curIndex * 375 + "px";
    } else {
    ++this.curIndex;
    this.refs.swiperContent.style.transition = "all 0.5s"; this.refs.swiperContent.style.left = -this.curIndex * 375 + "px";
    }

    相关文章

      网友评论

          本文标题:css3轮播图判断逻辑

          本文链接:https://www.haomeiwen.com/subject/wuxstktx.html