{"id":15033959,"url":"https://github.com/panjiachen/vue-countto","last_synced_at":"2025-05-15T10:06:19.197Z","repository":{"id":42949879,"uuid":"88144970","full_name":"PanJiaChen/vue-countTo","owner":"PanJiaChen","description":"It's a vue component that will count to a target number at a specified duration https://panjiachen.github.io/countTo/demo/","archived":false,"fork":false,"pushed_at":"2023-02-22T02:20:36.000Z","size":371,"stargazers_count":1488,"open_issues_count":36,"forks_count":316,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-05-15T10:05:14.291Z","etag":null,"topics":["countup","vue","vue-component"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PanJiaChen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-04-13T08:52:51.000Z","updated_at":"2025-05-09T03:41:50.000Z","dependencies_parsed_at":"2024-01-13T17:59:50.117Z","dependency_job_id":"0869c90e-dea8-429e-bf7f-cb5d4f409e75","html_url":"https://github.com/PanJiaChen/vue-countTo","commit_stats":{"total_commits":19,"total_committers":3,"mean_commits":6.333333333333333,"dds":"0.10526315789473684","last_synced_commit":"970b9b1d707cea57c2af8dd7db002f067ba16061"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PanJiaChen%2Fvue-countTo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PanJiaChen%2Fvue-countTo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PanJiaChen%2Fvue-countTo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PanJiaChen%2Fvue-countTo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PanJiaChen","download_url":"https://codeload.github.com/PanJiaChen/vue-countTo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254319720,"owners_count":22051073,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["countup","vue","vue-component"],"created_at":"2024-09-24T20:23:22.494Z","updated_at":"2025-05-15T10:06:14.168Z","avatar_url":"https://github.com/PanJiaChen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-countTo\n\n\u003e It's a vue component that will count to a target number at a specified duration\n\n [![vue2](https://img.shields.io/badge/vue-2.x-brightgreen.svg)](https://vuejs.org/)\n [![Gemnasium](https://img.shields.io/gemnasium/mathiasbynens/he.svg)](https://github.com/PanJiaChen/vue-countTo)\n [![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/PanJiaChen/vue-countTo)\n [![npm](https://img.shields.io/npm/v/vue-count-to.svg)](https://www.npmjs.com/package/vue-count-to)\n [![npm](https://img.shields.io/npm/dm/vue-count-to.svg)](https://npmcharts.com/compare/vue-count-to)\n [![minified](https://badgen.net/bundlephobia/min/vue-count-to)](https://bundlephobia.com/result?p=vue-count-to)\n [![gzip](https://badgen.net/bundlephobia/minzip/vue-count-to)](https://bundlephobia.com/result?p=vue-count-to)\n\nvue-countTo is a dependency-free, lightweight vue component that can be overwrited  easingFn by yourself.\nYou can set startVal and endVal ,it will automatic judge count up or count down.\nIt is support vue-ssr.\nIt is learn from countUp.js;\n\n## [Try the demo](http://panjiachen.github.io/countTo/demo/)\n\n### How to use?\n```bash\nnpm install vue-count-to\n```\n\n### Example\n\n```vue\n\u003ctemplate\u003e\n  \u003ccountTo :startVal='startVal' :endVal='endVal' :duration='3000'\u003e\u003c/countTo\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\n  import countTo from 'vue-count-to';\n  export default {\n    components: { countTo },\n    data () {\n      return {\n        startVal: 0,\n        endVal: 2017\n      }\n    }\n  }\n\u003c/script\u003e\n```\ndemo:\n\n![demo](https://github.com/PanJiaChen/vue-countTo/blob/master/countDemo.gif)\n\nUse CDN Script: [demo](https://github.com/PanJiaChen/vue-countTo/blob/master/demo/index.html)\n\n\n\n### Options\n|    Property    |    Description   |   type   |\tdefault\t|\n| -----------------  | ---------------- | :--------: | :----------: |\n| startVal       | the value you want to begin at |Number| 0 |\n| endVal         | the value you want to arrive at |Number | 2017 |\n| duration  | duration in millisecond | Number | 3000 |\n| autoplay     | when mounted autoplay | Boolean | true |\n| decimals     | the number of decimal places to show | Number | 0 |\n| decimal     | the split decimal | String | . |\n| separator     | the separator | String | , |\n| prefix     | the prefix | String | '' |\n| suffix     | the suffix | String | '' |\n| useEasing     | is use easing function | Boolean | true |\n| easingFn     | the easing function | Function | — |\n\n** notes: when autoplay:true , it will auto start when startVal or endVal change **\n\n\n### Functions\n| Function Name | Description   |\n| :--------:   | -----  |\n|    mountedCallback    |  when mounted will emit  mountedCallback  |\n|    start    |  start the countTo  |\n|    pause   |  pause  the countTo |\n|    reset    |  reset  the countTo |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanjiachen%2Fvue-countto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpanjiachen%2Fvue-countto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanjiachen%2Fvue-countto/lists"}