{"id":13437383,"url":"https://github.com/react-component/animate","last_synced_at":"2025-06-21T19:05:52.234Z","repository":{"id":35078511,"uuid":"39231629","full_name":"react-component/animate","owner":"react-component","description":"anim react element easily","archived":false,"fork":false,"pushed_at":"2021-07-30T21:17:15.000Z","size":5345,"stargazers_count":681,"open_issues_count":19,"forks_count":107,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-06-03T13:17:51.319Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://react-component.github.io/animate/","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/react-component.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-17T02:47:00.000Z","updated_at":"2025-04-20T09:08:44.000Z","dependencies_parsed_at":"2022-08-17T22:10:35.525Z","dependency_job_id":null,"html_url":"https://github.com/react-component/animate","commit_stats":null,"previous_names":[],"tags_count":66,"template":false,"template_full_name":null,"purl":"pkg:github/react-component/animate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fanimate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fanimate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fanimate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fanimate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-component","download_url":"https://codeload.github.com/react-component/animate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fanimate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261142422,"owners_count":23115647,"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":[],"created_at":"2024-07-31T03:00:56.538Z","updated_at":"2025-06-21T19:05:47.219Z","avatar_url":"https://github.com/react-component.png","language":"JavaScript","readme":"# rc-animate\n---\n\nAnimate React Component easily.\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n[![Dependencies][david-image]][david-url]\n[![DevDependencies][david-dev-image]][david-dev-url]\n[![npm download][download-image]][download-url]\n[![bundle size][bundlephobia-image]][bundlephobia-url]\n\n[npm-image]: http://img.shields.io/npm/v/rc-animate.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/rc-animate\n[travis-image]: https://img.shields.io/travis/react-component/animate.svg?style=flat-square\n[travis-url]: https://travis-ci.org/react-component/animate\n[coveralls-image]: https://img.shields.io/coveralls/react-component/animate.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/react-component/animate?branch=master\n[david-url]: https://david-dm.org/react-component/animate\n[david-image]: https://david-dm.org/react-component/animate/status.svg?style=flat-square\n[david-dev-url]: https://david-dm.org/react-component/animate?type=dev\n[david-dev-image]: https://david-dm.org/react-component/animate/dev-status.svg?style=flat-square\n[download-image]: https://img.shields.io/npm/dm/rc-animate.svg?style=flat-square\n[download-url]: https://npmjs.org/package/rc-animate\n[bundlephobia-url]: https://bundlephobia.com/result?p=rc-animate\n[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/rc-animate\n\n## Install\n\n[![rc-animate](https://nodei.co/npm/rc-animate.png)](https://npmjs.org/package/rc-animate)\n\n## Usage\n\n```js\nimport Animate from 'rc-animate';\n\nexport default () =\u003e (\n  \u003cAnimate animation={{ ... }}\u003e\n    \u003cp key=\"1\"\u003e1\u003c/p\u003e\n    \u003cp key=\"2\"\u003e2\u003c/p\u003e\n  \u003c/Animate\u003e\n);\n```\n\n## Compatibility\n\n| [\u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png\" alt=\"IE / Edge\" width=\"24px\" height=\"24px\" /\u003e](http://godban.github.io/browsers-support-badges/)\u003cbr\u003eIE / Edge | [\u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png\" alt=\"Firefox\" width=\"24px\" height=\"24px\" /\u003e](http://godban.github.io/browsers-support-badges/)\u003cbr\u003eFirefox | [\u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png\" alt=\"Chrome\" width=\"24px\" height=\"24px\" /\u003e](http://godban.github.io/browsers-support-badges/)\u003cbr\u003eChrome | [\u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png\" alt=\"Safari\" width=\"24px\" height=\"24px\" /\u003e](http://godban.github.io/browsers-support-badges/)\u003cbr\u003eSafari | [\u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/electron/electron_48x48.png\" alt=\"Electron\" width=\"24px\" height=\"24px\" /\u003e](http://godban.github.io/browsers-support-badges/)\u003cbr\u003eElectron |\n| --- | --- | --- | --- | --- |\n| IE11, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |\n\n## API\n\n### props\n\n\u003ctable class=\"table table-bordered table-striped\"\u003e\n    \u003cthead\u003e\n    \u003ctr\u003e\n        \u003cth style=\"width: 100px;\"\u003ename\u003c/th\u003e\n        \u003cth style=\"width: 50px;\"\u003etype\u003c/th\u003e\n        \u003cth style=\"width: 50px;\"\u003edefault\u003c/th\u003e\n        \u003cth\u003edescription\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n          \u003ctd\u003ecomponent\u003c/td\u003e\n          \u003ctd\u003eReact.Element/String\u003c/td\u003e\n          \u003ctd\u003e'span'\u003c/td\u003e\n          \u003ctd\u003ewrap dom node or component for children. set to '' if you do not wrap for only one child\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n          \u003ctd\u003ecomponentProps\u003c/td\u003e\n          \u003ctd\u003eObject\u003c/td\u003e\n          \u003ctd\u003e{}\u003c/td\u003e\n          \u003ctd\u003eextra props that will be passed to component\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n          \u003ctd\u003eshowProp\u003c/td\u003e\n          \u003ctd\u003eString\u003c/td\u003e\n          \u003ctd\u003e\u003c/td\u003e\n          \u003ctd\u003eusing prop for show and hide. [demo](http://react-component.github.io/animate/examples/hide-todo.html) \u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n          \u003ctd\u003eexclusive\u003c/td\u003e\n          \u003ctd\u003eBoolean\u003c/td\u003e\n          \u003ctd\u003e\u003c/td\u003e\n          \u003ctd\u003ewhether allow only one set of animations(enter and leave) at the same time. \u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n          \u003ctd\u003etransitionName\u003c/td\u003e\n          \u003ctd\u003eString|Object\u003c/td\u003e\n          \u003ctd\u003e\u003c/td\u003e\n          \u003ctd\u003especify corresponding css, see ReactCSSTransitionGroup\u003c/td\u003e\n        \u003c/tr\u003e\n       \u003ctr\u003e\n         \u003ctd\u003etransitionAppear\u003c/td\u003e\n         \u003ctd\u003eBoolean\u003c/td\u003e\n         \u003ctd\u003efalse\u003c/td\u003e\n         \u003ctd\u003ewhether support transition appear anim\u003c/td\u003e\n       \u003c/tr\u003e\n        \u003ctr\u003e\n          \u003ctd\u003etransitionEnter\u003c/td\u003e\n          \u003ctd\u003eBoolean\u003c/td\u003e\n          \u003ctd\u003etrue\u003c/td\u003e\n          \u003ctd\u003ewhether support transition enter anim\u003c/td\u003e\n        \u003c/tr\u003e\n       \u003ctr\u003e\n         \u003ctd\u003etransitionLeave\u003c/td\u003e\n         \u003ctd\u003eBoolean\u003c/td\u003e\n         \u003ctd\u003etrue\u003c/td\u003e\n         \u003ctd\u003ewhether support transition leave anim\u003c/td\u003e\n       \u003c/tr\u003e\n       \u003ctr\u003e\n         \u003ctd\u003eonEnd\u003c/td\u003e\n         \u003ctd\u003efunction(key:String, exists:Boolean)\u003c/td\u003e\n         \u003ctd\u003etrue\u003c/td\u003e\n         \u003ctd\u003eanimation end callback\u003c/td\u003e\n       \u003c/tr\u003e\n        \u003ctr\u003e\n          \u003ctd\u003eanimation\u003c/td\u003e\n          \u003ctd\u003eObject\u003c/td\u003e\n          \u003ctd\u003e{}\u003c/td\u003e\n          \u003ctd\u003e\n            to animate with js. see animation format below.\n          \u003c/td\u003e\n        \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n\n### animation format\n\nwith appear, enter and leave as keys. for example:\n\n```js\n  {\n    appear: function(node, done){\n      node.style.display='none';\n      $(node).slideUp(done);\n      return {\n        stop:function(){\n          // jq will call done on finish\n          $(node).stop(true);\n        }\n      };\n    },\n    enter: function(){\n      this.appear.apply(this,arguments);\n    },\n    leave: function(node, done){\n      node.style.display='';\n      $(node).slideDown(done);\n      return {\n        stop:function(){\n          // jq will call done on finish\n          $(node).stop(true);\n        }\n      };              \n    }\n  }\n```\n\n## Development\n\n```\nnpm install\nnpm start\n```\n\n## Example\n\nhttp://localhost:8200/examples/index.md\n\nonline example: http://react-component.github.io/animate/examples/\n\n## Test Case\n\n```\nnpm test\nnpm run chrome-test\n```\n\n## Coverage\n\n```\nnpm run coverage\n```\n\nopen coverage/ dir\n\n## License\n\nrc-animate is released under the MIT license.\n","funding_links":[],"categories":["Uncategorized","UI Animation","UI Frameworks","Ferramentas"],"sub_categories":["Uncategorized","Form Components","Responsive"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Fanimate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-component%2Fanimate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Fanimate/lists"}