Jquery FadeIn FadeOut循环动画重叠

时间:2016-05-04 05:52:29

标签: javascript jquery loops animation

我使用了jquery fadein fadeout动画来表达3个不同的句子。链接在这里paris.kanakia.com/zisit/在这个动画中,“Z”是沉默的。但是动画中有混蛋而不是一致性。请在下面找到我的代码。

function startAnim(){
setInterval(function () {
 $('#slide1').hide();
 $('#slide2').show();
 $('#slide2 .one').fadeIn(1000,function(){
                  $('#slide2 .one').fadeOut(1000,function(){
                   $('#slide2 .two').fadeIn(1000,function(){
                      $('#slide2 .two').fadeOut(1000,function(){
                          $('#slide2 .three').fadeIn(1000,function(){
                            $('#slide2 .three').fadeOut(1000);
                          });
                      });
                   });
                  });
                });
}, 8600);                    
}
jQuery(document).ready(function () {
  startAnim();
});

0 个答案:

没有答案
相关问题