{"id":15287220,"url":"https://github.com/itsjonq/playful","last_synced_at":"2026-01-05T05:43:20.282Z","repository":{"id":57325788,"uuid":"169900460","full_name":"ItsJonQ/playful","owner":"ItsJonQ","description":"▶️ Playful: A simple transition library for React (and routers!)","archived":false,"fork":false,"pushed_at":"2019-02-10T04:18:22.000Z","size":1093,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-24T14:58:34.054Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://react-playful.netlify.com/","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/ItsJonQ.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":"2019-02-09T18:42:53.000Z","updated_at":"2019-02-10T04:18:23.000Z","dependencies_parsed_at":"2022-08-31T23:50:11.335Z","dependency_job_id":null,"html_url":"https://github.com/ItsJonQ/playful","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsJonQ%2Fplayful","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsJonQ%2Fplayful/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsJonQ%2Fplayful/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ItsJonQ%2Fplayful/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ItsJonQ","download_url":"https://codeload.github.com/ItsJonQ/playful/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245200679,"owners_count":20576673,"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-09-30T15:26:35.805Z","updated_at":"2026-01-05T05:43:20.252Z","avatar_url":"https://github.com/ItsJonQ.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ▶️ Playful\n\n\u003e A simple transition library for React (and routers!)\n\n## Table of Contents\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Effects](#effects)\n- [Direction](#direction)\n- [Example](#example)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## Installation\n\n```\nnpm install --save playful\n```\n\n## Usage\n\n```jsx\nimport {withTransition} from 'playful'\n\n// Create your components as you normally would\nconst MyComponent = () =\u003e \u003cdiv\u003eMy Content\u003c/div\u003e\n\n// Define the effect you'd like your component to animate with when it is\n// mounted and unmounted. Technically, you don't need to do this.\n// The library has some nice smart defaults.\nconst playOptions = {\n  effect: 'fadeAndPop',\n  duration: 600,\n  direction: 'up',\n}\n\n// Create the enhanced component using withTransition along with your\n// options and component.\nconst PlayfulComponent = withTransition(playOptions)(MyComponent)\n\n// Render it out! ✨\nconst App = () =\u003e {\n  return (\n    \u003cdiv className=\"App\"\u003e\n      \u003cPlayfulComponent /\u003e\n    \u003c/div\u003e\n  )\n}\n```\n\n## Effects\n\nPlayful supports the following transition effects:\n\n- fade\n- fadeAndPop\n- fadeAndSlide\n- pop\n- scale\n- slide\n- swipe\n- zoom\n\n## Direction\n\nThe following directions can be applied to directonal moving effects:\n\n- `up`\n- `down`\n- `left`\n- `right`\n\nThe default direction is `right`.\n\n## Example\n\n[Check out the Storybook example!](https://react-playful.netlify.com/iframe.html?selectedKind=Playful\u0026selectedStory=Example\u0026full=0\u0026addons=1\u0026stories=1\u0026panelRight=0\u0026addonPanel=storybook%2Factions%2Factions-panel)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsjonq%2Fplayful","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsjonq%2Fplayful","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsjonq%2Fplayful/lists"}