{"id":14384871,"url":"https://github.com/Platane/react-flippity","last_synced_at":"2025-08-23T18:30:59.181Z","repository":{"id":149248808,"uuid":"60292399","full_name":"Platane/react-flippity","owner":"Platane","description":"Animate a list of elements using FLIP trick.","archived":false,"fork":false,"pushed_at":"2016-06-06T22:01:57.000Z","size":240,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T23:44:30.790Z","etag":null,"topics":["animation","flip-animation","react","spring-physics"],"latest_commit_sha":null,"homepage":"http://Platane.github.io/react-flippity","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/Platane.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-06-02T19:42:24.000Z","updated_at":"2019-04-29T19:40:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"4ab7e396-a6d0-4fdc-a816-1be9470e02c1","html_url":"https://github.com/Platane/react-flippity","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Platane/react-flippity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Platane%2Freact-flippity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Platane%2Freact-flippity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Platane%2Freact-flippity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Platane%2Freact-flippity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Platane","download_url":"https://codeload.github.com/Platane/react-flippity/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Platane%2Freact-flippity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271762876,"owners_count":24816827,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["animation","flip-animation","react","spring-physics"],"created_at":"2024-08-28T18:01:44.436Z","updated_at":"2025-08-23T18:30:58.892Z","avatar_url":"https://github.com/Platane.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# react-flippity\n\n\n![moss it crowd](https://raw.githubusercontent.com/Platane/react-flippity/master/asset/moss.jpg)\n\n\u003e_You think it's a flippin' game?_\n\nAnimate a list of elements using FLIP trick.\n\n[demo](http://Platane.github.io/react-flippity/)\n\n## Usage\n\n\u003e TODO publish to npm\n\nsame API as the brilliant [react-motion-flip](https://github.com/bloodyowl/react-motion-flip)\n\n```javascript\n\u003cdiv\u003e\n\n \u003cFlippity\u003e\n\n  () =\u003e\n   items.map( item =\u003e  \u003cMyItemComponent key={item.key} {...x} /\u003e\n\n \u003c/Flippity\u003e\n\n\u003c/div\u003e\n```\n\nFor every change in the `items` list, Flippity will make a nice transition to the new layout.\n\n### Styling\n\nThe previous code will produce this markup:\n\n```html\n\u003cdiv\u003e\n\n  \u003cdiv\u003e \u003c!-- the flippity container --\u003e\n\n   \u003cdiv\u003e \u003cMyItemComponent /\u003e \u003c/div\u003e  \u003c!-- one wrapper around each item --\u003e\n   \u003cdiv\u003e \u003cMyItemComponent /\u003e \u003c/div\u003e\n   \u003cdiv\u003e \u003cMyItemComponent /\u003e \u003c/div\u003e\n\n \u003c/div\u003e  \n\n\u003c/div\u003e\n```\n\nYou might want to custom the style of the container or the item wrapper.\n\nThis can be achieved by passing `style`, `childStyle` and `className`, `childClassName`.\n\n### Spring physic\n\nThe physic spring can be customized with the props `stiffness`, `damping` and `precision`.\n\n\n## References\n\n - [FLIP animation technique](https://aerotwist.com/blog/flip-your-animations/) by [__@paullewis__](https://github.com/paullewis), which allows to easily make transitions between two states, relying on the browser computation layout.\n - [react-motion](https://github.com/chenglou/react-motion) by [__@chenglou__](https://github.com/chenglou), from which I borrowed the spring physic based animation.\n - [react-motion-flip](https://github.com/bloodyowl/react-motion-flip) by [__@bloodyowl__](https://github.com/bloodyowl), which use clever tricks.\n\n\n - [The IT Crowd](https://www.youtube.com/watch?v=TwJheWwW7rw) for getting stuck in my head the whole time.\n\n\n## TODO\n\n- [v] publish to npm\n- [v] animate width and height\n- [ ] compute acceleration based on actual time ( not number of frame )\n- [ ] test :tropical_fish:\n- [ ] animate with webAnimation API\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPlatane%2Freact-flippity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPlatane%2Freact-flippity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPlatane%2Freact-flippity/lists"}