{"id":13394482,"url":"https://github.com/tkh44/data-driven-motion","last_synced_at":"2025-04-05T12:09:18.490Z","repository":{"id":65369517,"uuid":"83603496","full_name":"tkh44/data-driven-motion","owner":"tkh44","description":"Easily animate your data in react","archived":false,"fork":false,"pushed_at":"2017-06-08T18:25:40.000Z","size":3166,"stargazers_count":546,"open_issues_count":1,"forks_count":20,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-29T11:08:58.648Z","etag":null,"topics":["animation","data-driven-motion","motion","react","react-motion","reactjs","spring"],"latest_commit_sha":null,"homepage":"https://tkh44.github.io/data-driven-motion/","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/tkh44.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-01T21:28:03.000Z","updated_at":"2024-11-13T07:00:32.000Z","dependencies_parsed_at":"2023-09-06T19:00:54.249Z","dependency_job_id":null,"html_url":"https://github.com/tkh44/data-driven-motion","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkh44%2Fdata-driven-motion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkh44%2Fdata-driven-motion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkh44%2Fdata-driven-motion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkh44%2Fdata-driven-motion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkh44","download_url":"https://codeload.github.com/tkh44/data-driven-motion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332612,"owners_count":20921853,"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","data-driven-motion","motion","react","react-motion","reactjs","spring"],"created_at":"2024-07-30T17:01:21.198Z","updated_at":"2025-04-05T12:09:18.472Z","avatar_url":"https://github.com/tkh44.png","language":"JavaScript","readme":"# data-driven-motion\n\n[![npm version](https://badge.fury.io/js/data-driven-motion.svg)](https://badge.fury.io/js/data-driven-motion)\n[![Build Status](https://travis-ci.org/tkh44/data-driven-motion.svg?branch=master)](https://travis-ci.org/tkh44/data-driven-motion)\n[![codecov](https://codecov.io/gh/tkh44/data-driven-motion/branch/master/graph/badge.svg)](https://codecov.io/gh/tkh44/data-driven-motion)\n[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://img.shields.io/badge/code_style-standard-brightgreen.svg)\n\n\n\nEasily animate your data in react\n\nThis is a small wrapper around [react-motion](https://github.com/chenglou/react-motion) with the intention of simplifying the api for my most common use case.\n\n## [Demos and Docs](https://tkh44.github.io/data-driven-motion/)\n\n```bash\nnpm install -S data-driven-motion\n```\n\n## Motion\n\n```jsx\n\u003cMotion\n  data={[]}\n  component={\u003cul style={{ padding: 8 }} /\u003e}\n  render={(key, data, style) =\u003e \u003cli key={key} style={style}\u003e{data.name}\u003c/li\u003e}\n  getKey={data =\u003e data.name}\n  onComponentMount={data =\u003e ({ top: data.top, left: data.left })}\n  onRender={(data, i, spring) =\u003e ({ top: spring(data.top), left: spring(data.left) })}\n  onRemount={({ data }) =\u003e ({ top: data.top - 32, left: data.left - 32 })}\n  onUnmount={({ data }, spring) =\u003e ({ top: spring(data.top + 32), left: spring(data.left + 32) })}\n/\u003e\n```\n","funding_links":[],"categories":["JavaScript","UI Animation","Ferramentas"],"sub_categories":["Form Components","GraphQL"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkh44%2Fdata-driven-motion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkh44%2Fdata-driven-motion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkh44%2Fdata-driven-motion/lists"}