0

我正在使用 wow.js ( http://mynameismatthieu.com/WOW/docs.html )

  wow = new WOW(
    {
      boxClass:     'wow',      // default
      animateClass: 'animated', // default
      offset:       0,          // default
      mobile:       true,       // default
      live:         true        // default
    }
  )
  wow.init();

连同 ProgressBar.js ( http://kimmobrunfeldt.github.io/progressbar.js )

    var circle = new ProgressBar.Circle('#skillitem1', {
    color: '#49e2d6',
    strokeWidth: 3,
    trailWidth: 0,
    duration: 1000,
    text: {
        value: '0'
    },
    step: function(state, bar) {
        bar.setText((bar.value() * 100).toFixed(0));

    }
});

但是,我试图找到一种方法,在 wow 的淡入效果完成后如何触发 ProgressBar.js 的动画。

有小费吗?

4

1 回答 1

1

wow采用callback. 您可以设置一个自定义callback函数来启动ProgressBar.js进度条上的动画。

于 2015-06-18T23:44:43.977 回答