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

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

Loading…
Cancel
Save