{"id":20019477,"url":"https://github.com/sanv92/styled-transition-group","last_synced_at":"2025-05-04T23:32:00.880Z","repository":{"id":30392416,"uuid":"124776381","full_name":"sanv92/Styled-Transition-Group","owner":"sanv92","description":"Generate animation width styled-components and react-transition-group's CSSTransition","archived":false,"fork":false,"pushed_at":"2022-06-23T00:45:25.000Z","size":1227,"stargazers_count":11,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-08T11:12:27.802Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://sanderv1992.github.io/Styled-Transition-Group/","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/sanv92.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-11T16:33:35.000Z","updated_at":"2023-08-26T11:24:57.000Z","dependencies_parsed_at":"2022-09-17T16:21:46.343Z","dependency_job_id":null,"html_url":"https://github.com/sanv92/Styled-Transition-Group","commit_stats":null,"previous_names":["sanderv1992/styled-transition-group"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanv92%2FStyled-Transition-Group","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanv92%2FStyled-Transition-Group/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanv92%2FStyled-Transition-Group/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanv92%2FStyled-Transition-Group/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanv92","download_url":"https://codeload.github.com/sanv92/Styled-Transition-Group/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224416671,"owners_count":17307456,"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-11-13T08:27:43.363Z","updated_at":"2024-11-13T08:27:43.843Z","avatar_url":"https://github.com/sanv92.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Styled Transition Group Animation\n[![Build Status](https://travis-ci.org/SanderV1992/Styled-Transition-Group.svg?branch=master)](https://travis-ci.org/SanderV1992/Styled-Transition-Group)\n[![Coverage Status](https://coveralls.io/repos/github/SanderV1992/Styled-Transition-Group/badge.svg)](https://coveralls.io/github/SanderV1992/Styled-Transition-Group)\n\nGenerate animation width styled-components and react-transition-group's CSSTransition\n\nFor more information about the angular-translate project, please visit our [website](https://sanderv1992.github.io/Styled-Transition-Group).\n\n\n## Install\n```sh\nnpm install styled-transition-group-animation -S\n```\n\n## Usage\n```js\n\u003cTransitionGroup\u003e\n    {this.props.items.map((item) =\u003e (\n        \u003cTransition key={item} type=\"fade\" duration={1000}\u003e\n    \n          \u003cdiv\u003e\n            \u003ch6\u003e{item}\u003c/h6\u003e\n          \u003c/div\u003e\n    \n        \u003c/Transition\u003e\n    ))}\n\u003c/TransitionGroup\u003e\n```\n\n### Storybook\n[https://sanderv1992.github.io/Styled-Transition-Group/public/storybook/](https://sanderv1992.github.io/Styled-Transition-Group/public/storybook/)\n\n### API (props)\n### type\n\n* Type: `String`\n* Default: `fade`\n* Available types: `fade, zoom, rotate, roll`\n\n### duration\n\n* Type: `Number`\n* Default: `1000`\n\n### animation\n* Type: `Any`\n* Default: `null`\n\n### Add more animation types (you can add more animations manually):\n\n#### Transform\n```js\nconst animation = {\n  enter: {\n    from: 'scale3d(0.3, 0.3, 0.3)',\n    to: 'scale3d(2, 2, 2)',\n  },\n  exit: {\n    from: 'initial',\n    to: 'scale3d(0.3, 0.3, 0.3)',\n  },\n}\n\n\u003cTransitionGroup\u003e\n    {this.props.items.map((item) =\u003e (\n        \u003cTransition key={item} type=\"bounce\" animation={animation} duration={1000}\u003e\n\n          \u003cdiv\u003e\n            \u003ch6\u003e{item}\u003c/h6\u003e\n          \u003c/div\u003e\n\n        \u003c/Transition\u003e\n    ))}\n\u003c/TransitionGroup\u003e\n```\n\n#### Keyframes\n```js\nconst animation = {\n  keyframes: `\n      @keyframes bounceInDown {\n        from, 60%, 75%, 90%, to {\n          animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n        }\n\n        0% {\n          opacity: 0;\n          transform: translate3d(0, -3000px, 0);\n        }\n\n        60% {\n          opacity: 1;\n          transform: translate3d(0, 25px, 0);\n        }\n\n        75% {\n          transform: translate3d(0, -10px, 0);\n        }\n\n        90% {\n          transform: translate3d(0, 5px, 0);\n        }\n\n        to {\n          transform: translate3d(0, 0, 0);\n        }\n      }\n\n      @keyframes bounceOutDown {\n        20% {\n          transform: translate3d(0, 10px, 0);\n        }\n\n        40%, 45% {\n          opacity: 1;\n          transform: translate3d(0, -20px, 0);\n        }\n\n        to {\n          opacity: 0;\n          transform: translate3d(0, 2000px, 0);\n        }\n      }\n    `,\n  enter: 'bounceInDown',\n  exit: 'bounceOutDown',\n}\n\n\u003cTransitionGroup\u003e\n    {this.props.items.map((item) =\u003e (\n        \u003cTransition key={item} type=\"bounce\" animation={animation} duration={1000}\u003e\n\n          \u003cdiv\u003e\n            \u003ch6\u003e{item}\u003c/h6\u003e\n          \u003c/div\u003e\n\n        \u003c/Transition\u003e\n    ))}\n\u003c/TransitionGroup\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanv92%2Fstyled-transition-group","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanv92%2Fstyled-transition-group","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanv92%2Fstyled-transition-group/lists"}