Skip to content
Projects Vue.js Projects
Vue Countup v2

Vue Countup v2

Vue.js component wrap for countUp.js

5.6K viewsAdded Jan 20, 2019

Vue.js component wrap for countUp.js

Installation

npm install --save countup.js vue-countup-v2

Usage

<template>
  <div class="iCountUp">
    <ICountUp
            :startVal="startVal"
            :endVal="endVal"
            :decimals="decimals"
            :duration="duration"
            :options="options"
            @ready="onReady"
    />
  </div>
</template>

<script type="text/babel">
  import ICountUp from 'vue-countup-v2';
  export default {
      name: 'demo',
      components: {
          ICountUp
      },
      data() {
          return {
              startVal: 0,
              endVal: 120500,
              decimals: 0,
              duration: 2.5,
              options: {
                  useEasing: true,
                  useGrouping: true,
                  separator: ',',
                  decimal: '.',
                  prefix: '',
                  suffix: ''
              }
          };
      },
      methods: {
          onReady: function(instance, CountUp) {
              const that = this;
              instance.update(that.endVal + 100);
          }
      }
  };
</script>

<style scoped>
  .iCountUp {
      font-size: 12em;
      margin: 0;
      color: #4d63bc;
  }
</style>

Vue.js Projects

A hand-picked collection of projects made with Vue.js: UI components, input elements, apps, plugins, examples and frameworks.

Newsletter

Get the best new Vue projects in your inbox.

© 2026 vuejsprojects.com