您当前的位置: 首页 > 
  • 5浏览

    0关注

    284博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

【Vue】countUp.js 实现数字滚动 动态效果

区块链(Web3)开发工程师 发布时间:2019-04-10 11:46:45 ,浏览量:5

 GitHub项目主页:

https://github.com/xlsdg/vue-countup-v2

 使用介绍:

安装命令
Installation
$ npm install --save countup.js vue-countup-v2


代码中使用介绍
Usage

  
import ICountUp from 'vue-countup-v2'; export default { name: 'demo', components: { ICountUp }, data() { return { endVal: 120500, options: { useEasing: true, useGrouping: true, separator: ',', decimal: '.', prefix: '', suffix: '' } }; }, methods: { onReady: function(instance, CountUp) { const that = this; instance.update(that.endVal + 100); } } }; .iCountUp { font-size: 12em; margin: 0; color: #4d63bc; }

关注
打赏
1665194163
查看更多评论
立即登录/注册

微信扫码登录

0.0751s