0.0.9 • Published 4 months ago

vue3-odometer-counter v0.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

vue3-odometer-counter

Vue.js(v3.2+) component wrap for Odometer.js

Forked from vangleer/vue3-odometer

Installation

npm install --save odometer-counter vue3-odometer-counter

Usage

<template>
  <Vue3Odometer class="o-text" :value="number" />
  <button @click="update">update number</button>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
import Vue3Odometer from 'vue3-odometer-counter'
import 'odometer-counter/themes/odometer-theme-main.css'
const number = ref(100)

function update() {
  number.value = Math.floor(Math.random() * 1000)
}
</script>

<style>
.o-text {
  color: red;
}
</style>

Properties

See more Odometer.js

Methods

  • renderInside
  • watchForMutations
  • startWatchingMutations
  • stopWatchingMutations
  • cleanValue
  • bindTransitionEnd
  • resetFormat
  • renderDigit
  • formatDigits
  • insertDigit
  • addDigit
  • addSpacer
  • animate
  • animateCount
  • getDigitCount
  • getFractionalDigitCount
  • resetDigits
  • animateSlide
  • render
  • update

Learn more Odometer.js

License

MIT

0.0.9

4 months ago

0.0.8

4 months ago

0.0.7

5 months ago

0.0.6

5 months ago

0.0.5

5 months ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago