{"id":19215210,"url":"https://github.com/iceend/react-count-animation","last_synced_at":"2025-05-12T23:23:43.510Z","repository":{"id":65482923,"uuid":"67286444","full_name":"IceEnd/react-count-animation","owner":"IceEnd","description":":collision:Animation for change count,using React library.","archived":false,"fork":false,"pushed_at":"2018-01-24T02:45:55.000Z","size":201,"stargazers_count":18,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-02T14:47:52.211Z","etag":null,"topics":["animation","counter","react"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IceEnd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-03T11:21:39.000Z","updated_at":"2023-01-05T07:03:56.000Z","dependencies_parsed_at":"2023-01-25T11:15:20.621Z","dependency_job_id":null,"html_url":"https://github.com/IceEnd/react-count-animation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IceEnd%2Freact-count-animation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IceEnd%2Freact-count-animation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IceEnd%2Freact-count-animation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IceEnd%2Freact-count-animation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IceEnd","download_url":"https://codeload.github.com/IceEnd/react-count-animation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253838484,"owners_count":21972164,"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":["animation","counter","react"],"created_at":"2024-11-09T14:13:00.797Z","updated_at":"2025-05-12T23:23:43.486Z","avatar_url":"https://github.com/IceEnd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-count-animation\n\n[![npm](https://img.shields.io/badge/npm-v1.1.3-brightgreen.svg)](https://www.npmjs.com/package/react-count-animation)\n[![MIT License](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)](https://github.com/IceEnd/icePlayer/blob/master/LICENSE)\n\nUsing TWEEN algorithm, digital animation based on react.\n\n## Display\n![display](http://obukb5fdy.bkt.clouddn.com/countanimation.gif)\n\n## Install\n```markdown\nnpm install react-count-animation@latest\n```\n\n## How to use\n\nimport stylesheet:\n\n```js\nimport 'react-count-animation/dist/count.min.css';\n```\n\n```js\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport AnimationCount from 'react-count-animation';\n\nconst Count = () =\u003e {\n  const settings = {\n    start: 99923,\n    count: 9999999,\n    duration: 3000,\n    decimals: 4,\n    useGroup: true,\n    animation: 'up',\n  };\n  const settings2 = {\n    start: 1,\n    count: 9999999,\n    duration: 1000,\n    decimals: 2,\n    useGroup: true,\n    animation: 'roll',\n  };\n  const settings3 = {\n    start: 1,\n    count: 9999999,\n    duration: 3000,\n    decimals: 2,\n    useGroup: true,\n    animation: 'slide',\n  };\n  return (\n    \u003cdiv\u003e\n      \u003ch1 className=\"title\"\u003eCount Animation\u003c/h1\u003e\n      \u003cdiv className=\"exam-div\"\u003e\n        \u003cAnimationCount {...settings}/\u003e\n      \u003c/div\u003e\n      \u003ch1 className=\"title\"\u003eCount Roll\u003c/h1\u003e\n      \u003cdiv className=\"exam-div\"\u003e\n        \u003cAnimationCount {...settings2}/\u003e\n      \u003c/div\u003e\n      \u003ch1 className=\"title\"\u003eCount Slide\u003c/h1\u003e\n      \u003cdiv className=\"exam-div\"\u003e\n        \u003cAnimationCount {...settings3} /\u003e\n      \u003c/div\u003e\n    \u003c/div\u003e\n  );\n}\n\nexport default Count;\n```\n\n## Options\nProperty           | Type                  | Description\n-------------      | -------------        | -------------\nstart                 | Number             | Initial value\ncount               | Number             | target value\nduration           | Number             | Animation time length, in milliseconds\ndecimals          | Number             | decimals\nuseGroup         | bool                  |  Whether to use ',' the number of segments\nanimation         | string                |  Animation effects: \u003cbr\u003e 'up' =\u003e 'CountUp';\u003cbr\u003e'roll' =\u003e 'CountRoll'\u003cbr\u003e'slide' =\u003e 'CountSlide'\n\n## License\n\n[MIT](https://github.com/IceEnd/react-count-animation/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficeend%2Freact-count-animation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficeend%2Freact-count-animation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficeend%2Freact-count-animation/lists"}