{"id":20735880,"url":"https://github.com/felipethome/react-transition-hooks","last_synced_at":"2025-04-23T23:43:19.394Z","repository":{"id":57346650,"uuid":"62483007","full_name":"felipethome/react-transition-hooks","owner":"felipethome","description":"Helps to manage CSS transitions in React components","archived":false,"fork":false,"pushed_at":"2018-01-05T23:19:39.000Z","size":536,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-15T12:45:50.782Z","etag":null,"topics":["react","react-transition-hooks","reactcsstransitiongroup"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/felipethome.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-03T05:37:42.000Z","updated_at":"2023-08-16T18:43:58.000Z","dependencies_parsed_at":"2022-08-25T19:41:13.337Z","dependency_job_id":null,"html_url":"https://github.com/felipethome/react-transition-hooks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipethome%2Freact-transition-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipethome%2Freact-transition-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipethome%2Freact-transition-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipethome%2Freact-transition-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/felipethome","download_url":"https://codeload.github.com/felipethome/react-transition-hooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250535057,"owners_count":21446503,"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":["react","react-transition-hooks","reactcsstransitiongroup"],"created_at":"2024-11-17T05:40:25.574Z","updated_at":"2025-04-23T23:43:19.241Z","avatar_url":"https://github.com/felipethome.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Transition Hooks\n\nThe goal of this component is supply a better alternative to [ReactTransitionGroup](https://facebook.github.io/react/docs/animation.html). Why? Because, ReactTransitionGroup animations can not be interrupted. So, if you are with a component entering the group it can not leave until the entering phase is complete. Plus, Facebook will drop support for ReactTransitionGroup soon.\n\nIf you have a component currently using ReactTransitionGroup you can just change your import with this component and everything should work as expected.\n\n[Demo using ReactInlineTransitionGroup](http://felipethome.github.io/react-inline-transition-group/demo/index.html)\n\n# How to install\n\n    npm install react-transition-hooks\n\n## Hooks\n\nThis component uses the same API names of ReactTransitionGroup. \n\n- **componentWillAppear(callback)**: Called right after componentDidMount. This is called for the children inside the group for the first render. After the first render this will never be called again.\n\n- **componentDidAppear()**: Called when the callback passed to componentWillAppear is called.\n\n- **componentWillEnter(callback)**: Called when a component just entered the group.\n\n- **componentDidEnter()**: Called when the callback passed to componentWillEnter is called.\n\n- **componentWillLeave(callback)**: Called when a component is leaving the group.\n\n- **componentDidLeave()**: Called when the callback passed to componentWillLeave is called. This is called right after componentWillUnmount.\n\n## Properties\n\nProperty name | Description\n------------ | -------------\ncomponent | The component that will wrap all the children. Default: span\n\n## LICENSE\n\nBSD-3","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelipethome%2Freact-transition-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelipethome%2Freact-transition-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelipethome%2Freact-transition-hooks/lists"}