main
liudan 2 years ago
parent 4d0920cb40
commit 3872647350
  1. 23
      service/service13.html

@ -96,8 +96,8 @@
</div> </div>
<div class="col-xs-12 col-sm-12 col-md-12 wrap fadeInDown"> <div class="col-xs-12 col-sm-12 col-md-12 wrap fadeInDown">
<div class="imgContainer"> <div class="imgContainer">
<img src="../images/业务版图优化-2动图.gif" class="gifimg"> <!-- <img src="../images/业务版图优化-2动图.gif" class="gifimg"> -->
<!-- <img src="../images/static.png" alt="" class="staticimg"> --> <img src="" alt="" class="gifimg">
</div> </div>
</div> </div>
@ -184,6 +184,7 @@
// } // }
// }) // })
//全屏滚动 //全屏滚动
let timer;
$('#about_main').fullpage({ $('#about_main').fullpage({
'navigation': true, 'navigation': true,
scrollBar: false, scrollBar: false,
@ -196,11 +197,17 @@
loopHorizontal: true, loopHorizontal: true,
afterLoad: function(anchorLink, index){ afterLoad: function(anchorLink, index){
console.log(index) console.log(index)
if(index == 2){ if(index == 2){
$('.gifimg').attr('src',`../images/业务版图优化-2动图.gif?time=${new Date().getTime()}`)
setTimeout(()=>{ timer = setTimeout(()=>{
$('.gifimg').attr('src',`../images/static.png`) $('.gifimg').attr('src',`../images/static.png`);
},8000) clearTimeout(timer)
},9000)
}else{
clearTimeout(timer)
$('.gifimg').attr('src',`../images/static.png`);
} }
}, },
afterSlideLoad:function(){ afterSlideLoad:function(){
@ -208,6 +215,10 @@
afterRender: function(){ afterRender: function(){
}, },
onLeave: function(index, direction){ onLeave: function(index, direction){
console.log("iii",index,direction)
if(direction==2){
$('.gifimg').attr('src',`../images/业务版图优化-2动图.gif?time=${new Date().getTime()}`)
}
} }
}) })
</script> </script>

Loading…
Cancel
Save