{"id":14483741,"url":"https://github.com/vercel/react-keyframes","last_synced_at":"2025-04-04T13:12:16.713Z","repository":{"id":40296054,"uuid":"53796902","full_name":"vercel/react-keyframes","owner":"vercel","description":"Create frame-based animations in React","archived":false,"fork":false,"pushed_at":"2023-07-18T20:54:08.000Z","size":1727,"stargazers_count":624,"open_issues_count":13,"forks_count":27,"subscribers_count":62,"default_branch":"main","last_synced_at":"2025-03-28T12:08:16.802Z","etag":null,"topics":["animate","animation","frame","keyframes","react"],"latest_commit_sha":null,"homepage":"https://npmjs.com/react-keyframes","language":"TypeScript","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/vercel.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","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}},"created_at":"2016-03-13T17:06:13.000Z","updated_at":"2025-03-25T01:15:39.000Z","dependencies_parsed_at":"2024-02-06T01:01:21.758Z","dependency_job_id":null,"html_url":"https://github.com/vercel/react-keyframes","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel%2Freact-keyframes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel%2Freact-keyframes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel%2Freact-keyframes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel%2Freact-keyframes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vercel","download_url":"https://codeload.github.com/vercel/react-keyframes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247182368,"owners_count":20897380,"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":["animate","animation","frame","keyframes","react"],"created_at":"2024-09-03T00:02:04.718Z","updated_at":"2025-04-04T13:12:16.693Z","avatar_url":"https://github.com/vercel.png","language":"TypeScript","readme":"# React Keyframes\n\nA React component for creating frame-based animations.\n\n![Demo](https://cloud.githubusercontent.com/assets/775227/14613178/24789406-05d6-11e6-8411-6ee929ae3f3e.gif)\n\n## Example\n\nThe following example will render contents in `Frame` one at a time every 500 ms.\n\n```js\nimport { Keyframes, Frame } from \"react-keyframes\";\n\nfunction MyComponent() {\n  return (\n    \u003cKeyframes\u003e\n      \u003cFrame duration={500}\u003eThis\u003c/Frame\u003e\n      \u003cFrame duration={500}\u003eThis is\u003c/Frame\u003e\n      \u003cFrame duration={500}\u003e\n        This is \u003cem\u003eanimated\u003c/em\u003e.\n      \u003c/Frame\u003e\n    \u003c/Keyframes\u003e\n  );\n}\n```\n\n## Usage\n\nFirstly, install the package:\n\n```js\n$ npm install --save react-keyframes\n```\n\n## API\n\n### Keyframes\n\n**`\u003cKeyframes { component = 'span' } /\u003e`**\n\n- Use `import { Keyframes } from 'react-keyframes'`\n- The `component` prop specifies what component `Keyframes` renders as. You can pass the following:\n  - a React Component (i.e. `\u003cKeyframes component={myComponent} /\u003e`)\n  - a React Fragment (i.e. `\u003cKeyframes component={React.Fragment} /\u003e`)\n  - an HTML tag represented as a string (i.e. `\u003cKeyframes component='div' /\u003e`)\n  - If nothing is passed, it defaults to \"span\"\n- Any additional, user-defined properties will become properties of the rendered component.\n- It must have only `Frame` as children.\n- Example:\n\n```js\nimport { Component } from 'react';\nimport { Keyframes, Frame } from 'react-keyframes';\n\nclass extends Component {\n  render () {\n    return \u003cKeyframes component=\"pre\" delay={300} className=\"animation-test\"\u003e\n      \u003cFrame\u003efoo\u003c/Frame\u003e\n      \u003cFrame\u003ebar\u003c/Frame\u003e\n    \u003c/Keyframes\u003e;\n  }\n}\n```\n\n### Frame\n\n**`\u003cFrame { duration = 0 } /\u003e`**\n\n- Use `import { Frame } from 'react-keyframes'`\n- The `duration` prop specifies the length of time that a frame should show (millisecond).\n- You have to put `Frame` in the order you want them animated.\n- Example:\n\n```js\nimport { Component } from 'react';\nimport { Keyframes, Frame } from 'react-keyframes';\n\nclass extends Component {\n  render () {\n    return \u003cKeyframes\u003e\n      \u003cFrame duration={100}\u003efoo\u003c/Frame\u003e\n      \u003cFrame duration={200}\u003ebar\u003c/Frame\u003e\n    \u003c/Keyframes\u003e;\n  }\n}\n```\n\n## Contributing\n\n- Run `npm run build` to transpile the source code\n- Before submitting a PR, please run `npm run test`\n- Please [be welcoming](http://contributor-covenant.org/)\n\n## Author\n\nNaoyuki Kanezawa ([@nkzawa](https://twitter.com/nkzawa)) - [Vercel](https://vercel.com)\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvercel%2Freact-keyframes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvercel%2Freact-keyframes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvercel%2Freact-keyframes/lists"}