{"name":"rc-motion","version":"2.9.4","description":"React lifecycle controlled motion library","keywords":["react","react-component","react-motion","motion","antd","ant-design"],"homepage":"https://react-component.github.io/motion","bugs":{"url":"http://github.com/react-component/motion/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/react-component/motion.git"},"license":"MIT","main":"./lib/index","module":"./es/index","typings":"es/index.d.ts","scripts":{"compile":"father build","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","lint":"eslint src/ --ext .tsx,.ts","now-build":"npm run docs:build","prepare":"husky install","prepublishOnly":"npm run compile && np --yolo --no-publish","prettier":"prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"","postpublish":"npm run docs:build && npm run docs:deploy","start":"dumi dev","test":"rc-test"},"lint-staged":{"**/*.{js,jsx,tsx,ts,md,json}":["prettier --write","git add"]},"dependencies":{"@babel/runtime":"^7.11.1","classnames":"^2.2.1","rc-util":"^5.44.0"},"devDependencies":{"@rc-component/father-plugin":"^1.0.1","@testing-library/jest-dom":"^5.16.4","@testing-library/react":"^15.0.7","@types/classnames":"^2.2.9","@types/jest":"^26.0.8","@types/react":"^18.0.0","@types/react-dom":"^18.0.0","@umijs/fabric":"^2.0.8","cross-env":"^7.0.2","dumi":"^2.0.18","eslint":"^7.0.0","father":"^4.1.2","gh-pages":"^6.0.0","husky":"^8.0.3","lint-staged":"^14.0.1","np":"^6.2.4","prettier":"^2.1.1","rc-test":"^7.0.14","react":"^18.3.0","react-dom":"^18.3.0","typescript":"^4.0.3"},"peerDependencies":{"react":">=16.9.0","react-dom":">=16.9.0"},"cnpm":{"mode":"npm"},"tnpm":{"mode":"npm"},"_id":"rc-motion@2.9.4","gitHead":"e4bd175e3cc00622c597ab8ffe5ee4aef530275d","_nodeVersion":"22.5.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-TAPUUufDqhPO669qJobI0d9U0XZ/VPNQyZTivUxxzU1EyuPe3PtHSx7Kb902KuzQgu7sS18z8GguaxZEALV/ww==","shasum":"55fcf465a582a7e9f40f2687c2ebf2572e31bc2b","tarball":"http://registry-npm.ywwl.com/rc-motion/download/rc-motion-2.9.4.tgz","fileCount":55,"unpackedSize":106027,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQjxZOZOeDIJE5fr6mjkvuV2Im36FL3veaZevRXghuwwIgbwCD/s+QaiPoVnwm1QsA3+u7H204v10FukyBgsTSnmA="}],"size":17149,"noattachment":false,"key":"/rc-motion/-/rc-motion-2.9.4.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/rc-motion_2.9.4_1733897346992_0.26590152324337524"},"_hasShrinkwrap":false,"readme":"# rc-motion\n\n<!-- prettier-ignore -->\n[![NPM version][npm-image]][npm-url]\n[![npm download][download-image]][download-url]\n[![build status][github-actions-image]][github-actions-url]\n[![Codecov][codecov-image]][codecov-url]\n[![bundle size][bundlephobia-image]][bundlephobia-url]\n[![dumi][dumi-image]][dumi-url]\n\n[npm-image]: http://img.shields.io/npm/v/rc-motion.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/rc-motion\n[travis-image]: https://img.shields.io/travis/react-component/motion/master?style=flat-square\n[travis-url]: https://travis-ci.com/react-component/motion\n[github-actions-image]: https://github.com/react-component/motion/workflows/CI/badge.svg\n[github-actions-url]: https://github.com/react-component/motion/actions\n[codecov-image]: https://img.shields.io/codecov/c/github/react-component/motion/master.svg?style=flat-square\n[codecov-url]: https://app.codecov.io/gh/react-component/motion\n[david-url]: https://david-dm.org/react-component/motion\n[david-image]: https://david-dm.org/react-component/motion/status.svg?style=flat-square\n[david-dev-url]: https://david-dm.org/react-component/motion?type=dev\n[david-dev-image]: https://david-dm.org/react-component/motion/dev-status.svg?style=flat-square\n[download-image]: https://img.shields.io/npm/dm/rc-motion.svg?style=flat-square\n[download-url]: https://npmjs.org/package/rc-motion\n[bundlephobia-url]: https://bundlephobia.com/package/rc-motion\n[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/rc-motion\n[dumi-url]: https://github.com/umijs/dumi\n[dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square\n\nReact lifecycle controlled motion library.\n\n## Live Demo\n\nhttps://react-component.github.io/motion/\n\n## Install\n\n[![rc-motion](https://nodei.co/npm/rc-motion.png)](https://npmjs.org/package/rc-motion)\n\n## Example\n\n```js\nimport CSSMotion from 'rc-motion';\n\nexport default ({ visible }) => (\n  <CSSMotion visible={visible} motionName=\"my-motion\">\n    {({ className, style }) => <div className={className} style={style} />}\n  </CSSMotion>\n);\n```\n\n## API\n\n### CSSMotion\n\n| Property | Type | Default | Description |\n| --- | --- | --- | --- |\n| motionName | string | - | Config motion name, will dynamic update when status changed |\n| visible | boolean | true | Trigger motion events |\n| motionAppear | boolean | true | Use motion when appear |\n| motionEnter | boolean | true | Use motion when enter |\n| motionLeave | boolean | true | Use motion when leave |\n| motionLeaveImmediately | boolean | - | Will trigger leave even on mount |\n| motionDeadline | number | - | Trigger motion status change even when motion event not fire |\n| removeOnLeave | boolean | true | Remove element when motion leave end |\n| leavedClassName | string | - | Set leaved element className |\n| onAppearStart | (HTMLElement, Event) => CSSProperties \\| void; | - | Trigger when appear start, return style will patch to element |\n| onEnterStart | (HTMLElement, Event) => CSSProperties \\| void; | - | Trigger when enter start, return style will patch to element |\n| onLeaveStart | (HTMLElement, Event) => CSSProperties \\| void; | - | Trigger when leave start, return style will patch to element |\n| onAppearActive | (HTMLElement, Event) => CSSProperties \\| void; | - | Trigger when appear active, return style will patch to element |\n| onEnterActive | (HTMLElement, Event) => CSSProperties \\| void; | - | Trigger when enter active, return style will patch to element |\n| onLeaveActive | (HTMLElement, Event) => CSSProperties \\| void; | - | Trigger when leave active, return style will patch to element |\n| onAppearEnd | (HTMLElement, Event) => boolean \\| void; | - | Trigger when appear end, will not finish when return false |\n| onEnterEnd | (HTMLElement, Event) => boolean \\| void; | - | Trigger when enter end, will not finish when return false |\n| onLeaveEnd | (HTMLElement, Event) => boolean \\| void; | - | Trigger when leave end, will not finish when return false |\n\n### CSSMotionList\n\nextends all the props from [CSSMotion](#CSSMotion)\n\n| Property  | Type                          | Default | Description       |\n| --------- | ----------------------------- | ------- | ----------------- |\n| keys      | React.Key[]                   | -       | Motion list keys  |\n| component | string \\| React.ComponentType | div     | wrapper component |\n\n## Development\n\n```\nnpm install\nnpm start\n```\n\n## License\n\nrc-motion is released under the MIT license.\n","publish_time":1733897347178,"maintainers":[{"name":"afc163","email":"afc163@gmail.com"},{"name":"zombiej","email":"smith3816@gmail.com"},{"name":"07akioni","email":"07akioni2@gmail.com"},{"name":"madccc","email":"1075746765@qq.com"}],"_cnpm_publish_time":1733897347178,"dist-tags":{"latest":"2.9.5"}}