{"id":20762025,"url":"https://github.com/donkeyclip/motorcortex-counter","last_synced_at":"2025-04-30T06:29:44.131Z","repository":{"id":38154073,"uuid":"337103588","full_name":"donkeyclip/motorcortex-counter","owner":"donkeyclip","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-25T21:43:46.000Z","size":15113,"stargazers_count":0,"open_issues_count":18,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-25T22:28:33.570Z","etag":null,"topics":["counter","motorcortex","motorcortex-plugin"],"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/donkeyclip.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-02-08T14:31:59.000Z","updated_at":"2022-04-01T08:41:13.000Z","dependencies_parsed_at":"2023-10-21T00:27:06.314Z","dependency_job_id":"65853f59-93ca-47af-8ee7-36f41de98809","html_url":"https://github.com/donkeyclip/motorcortex-counter","commit_stats":{"total_commits":558,"total_committers":14,"mean_commits":"39.857142857142854","dds":"0.34408602150537637","last_synced_commit":"d300f04532891844c5312549abae349aa6a418ac"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeyclip%2Fmotorcortex-counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeyclip%2Fmotorcortex-counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeyclip%2Fmotorcortex-counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkeyclip%2Fmotorcortex-counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/donkeyclip","download_url":"https://codeload.github.com/donkeyclip/motorcortex-counter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251653751,"owners_count":21622183,"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":["counter","motorcortex","motorcortex-plugin"],"created_at":"2024-11-17T10:28:45.305Z","updated_at":"2025-04-30T06:29:44.087Z","avatar_url":"https://github.com/donkeyclip.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MotorCortex-Counter\n\n**Table of Contents**\n\n- [MotorCortex-Counter](#motorcortex-counter)\n  - [Demo](#demo)\n- [Intro / Features](#intro--features)\n- [Getting Started](#getting-started)\n  - [Installation](#installation)\n  - [Importing and Loading](#importing-and-loading)\n- [Creating Incidents](#creating-incidents)\n  - [Counter](#counter)\n- [Adding Incidents in your clip](#adding-incidents-in-your-clip)\n- [Contributing](#contributing)\n- [License](#license)\n- [Sponsored by](#sponsored-by)\n\n## Demo\n\n[Check it out here](https://donkeyclip.github.io/motorcortex-counter/demo/)\n\n# Intro / Features\nWith MotorCortex-Counter you can easily add a counter in your clip. You are able to animate and customize the progress of a number from an initial value to the target value.\n\nThe Plugin exposes one Incident:\n- Counter\n\n#### Browser compatibility\n\n| Chrome | Safari | IE / Edge | Firefox | Opera |\n| ------ | ------ | --------- | ------- | ----- |\n| 24+    | 6+     | 10+       | 32+     | 15+   |\n\n# Getting Started\n\n## Installation\n\n```bash\n$ npm install @donkeyclip/motorcortex-counter\n# OR\n$ yarn add @donkeyclip/motorcortex-counter\n```\n\n## Importing and loading\n\n```javascript\nimport { loadPlugin } from \"@donkeyclip/motorcortex\";\nimport CounterDef from \"@donkeyclip/motorcortex-counter\";\nconst Counter = loadPlugin(CounterDef);\n```\n\n# Creating Incidents\n\n## Counter\n```javascript\nconst counterEffect = new Counter.Counter(\n  {\n    animatedAttrs: {\n      count: 100,\n    },\n    initialValues: {\n      count: 0,\n    },\n    decimals: 2,\n  },\n  {\n    selector: \".effect-target\",\n    duration: 1000,\n    easing: \"easeInOutQuad\",\n  }\n);\n```\n\n### Counter Attrs\n\n| Name     |                          Are                 | Values     |\n| -------- | :------------------------------------------: | ---------: |\n|  count   |        set that initial and target value     |       num  |\n| decimals |  defines the decimal accurary of the counter | num (0-20) |\n\n# Adding Incidents in your clip\n\n```javascript\nclipName.addIncident(incidentName,startTime);\n```\n\n# Contributing \n\nIn general, we follow the \"fork-and-pull\" Git workflow, so if you want to submit patches and additions you should follow the next steps:\n1.\t**Fork** the repo on GitHub\n2.\t**Clone** the project to your own machine\n3.\t**Commit** changes to your own branch\n4.\t**Push** your work back up to your fork\n5.\tSubmit a **Pull request** so that we can review your changes\n\n# License\n\n[MIT License](https://opensource.org/licenses/MIT)\n\n# Sponsored by\n[\u003cimg src=\"https://presskit.donkeyclip.com/logos/donkey%20clip%20logo.svg\" width=250\u003e\u003c/img\u003e](https://donkeyclip.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonkeyclip%2Fmotorcortex-counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdonkeyclip%2Fmotorcortex-counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonkeyclip%2Fmotorcortex-counter/lists"}