https://github.com/inorganik/countUp.js

  • target = 目标元素的 ID;
  • startVal = 开始值;
  • endVal = 结束值;
  • decimals = 小数位数,默认值是0;
  • duration = 动画延迟秒数,默认值是2;

使用示例:

1
2
var demo = new countUp("myTargetElement", 24.02, 94.62, 2, 2.5);
demo.start();

相关文章:

  • 2022-12-23
  • 2021-05-27
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2022-03-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案