jQuery LiveQuery在屏幕上闪烁,HTML& CSS

时间:2013-03-31 03:45:03

标签: jquery html css html5 css3

我试图阻止一段代码闪烁。我使用jQuery LiveQuery插件不运行效果,直到它在屏幕上可见,但它很慢(显示需要大约2秒,我不知道为什么),更重要的是在2秒内它在屏幕上闪烁几次。我在css中尝试过display:none但是没有用。

有什么想法吗?

    <script>
          $(function () {
      $("#percentage-bars-page-wrap").show();
      $('.meter .bar:visible').livequery(function () {
          $(".meter .bar").hide().show('bounce', {
              times: 4,
              direction: 'right'
          }, 1780);

      });

  });

    </script>

0 个答案:

没有答案