{"id":22454311,"url":"https://github.com/Reselim/Flipper","last_synced_at":"2025-08-02T02:31:01.506Z","repository":{"id":43232765,"uuid":"288538706","full_name":"Reselim/Flipper","owner":"Reselim","description":"A motion library for Roblox","archived":false,"fork":false,"pushed_at":"2021-11-25T10:33:48.000Z","size":1110,"stargazers_count":126,"open_issues_count":1,"forks_count":18,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-28T09:08:21.211Z","etag":null,"topics":["animation","otter","roblox"],"latest_commit_sha":null,"homepage":"https://reselim.github.io/Flipper/","language":"Lua","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/Reselim.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":"2020-08-18T18:54:22.000Z","updated_at":"2025-06-21T08:30:18.000Z","dependencies_parsed_at":"2022-09-26T21:20:37.444Z","dependency_job_id":null,"html_url":"https://github.com/Reselim/Flipper","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/Reselim/Flipper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reselim%2FFlipper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reselim%2FFlipper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reselim%2FFlipper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reselim%2FFlipper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Reselim","download_url":"https://codeload.github.com/Reselim/Flipper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reselim%2FFlipper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268309131,"owners_count":24230166,"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-01T02:00:08.611Z","response_time":67,"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","otter","roblox"],"created_at":"2024-12-06T07:07:30.769Z","updated_at":"2025-08-02T02:31:01.162Z","avatar_url":"https://github.com/Reselim.png","language":"Lua","readme":"\u003cp align=\"center\"\u003e\n\t\u003cimg src=\".github/logo.svg\" height=\"180\"\u003e\n\t\u003cbr\u003e\n\tFlipper is an animation library for Roblox based around Motors and Goals.\n\u003c/p\u003e\n\n# Installation\n\n## Rojo\n\n### 0.6.x+\n\nAdd this repository as a submodule into your packages directory. This example assumes the directory is `packages`.\n\n```\ngit submodule add https://github.com/Reselim/Flipper packages/Flipper\n```\n\n### 0.5.x\n\nCopy the `src` folder from this repository into your packages directory.\n\n## npm (for roblox-ts)\n\nInstall the [`@rbxts/flipper`](https://www.npmjs.com/package/@rbxts/flipper) package using `npm` or `yarn`.\n\n```\nnpm i @rbxts/flipper\n```\n\n## Without Rojo\n\nDownload the latest .rbxm file from [the releases page](https://github.com/Reselim/Flipper/releases) and drag it into studio.\n\n# Usage\n\n## With Roact\n\nThis example creates a button that shrinks when pressed.\n\n```lua\nlocal Example = Roact.Component:extend(\"Example\")\n\nfunction Example:init()\n\tself.motor = Flipper.SingleMotor.new(0)\n\n\tlocal binding, setBinding = Roact.createBinding(self.motor:getValue())\n\tself.binding = binding\n\n\tself.motor:onStep(setBinding)\nend\n\nfunction Example:render()\n\treturn Roact.createElement(\"ImageButton\", {\n\t\tSize = self.binding:map(function(value)\n\t\t\treturn UDim2.new(0, 100, 0, 100):Lerp(UDim2.new(0, 80, 0, 80), value)\n\t\tend),\n\t\tPosition = UDim2.new(0.5, 0, 0.5, 0),\n\t\tAnchorPoint = Vector2.new(0.5, 0.5),\n\n\t\t[Roact.Event.MouseButton1Down] = function()\n\t\t\tself.motor:setGoal(Flipper.Spring.new(1, {\n\t\t\t\tfrequency = 5,\n\t\t\t\tdampingRatio = 1\n\t\t\t}))\n\t\tend,\n\n\t\t[Roact.Event.MouseButton1Up] = function()\n\t\t\tself.motor:setGoal(Flipper.Spring.new(0, {\n\t\t\t\tfrequency = 4,\n\t\t\t\tdampingRatio = 0.75\n\t\t\t}))\n\t\tend\n\t})\nend\n\nreturn Example\n```\n\nFlipper works wonderfully with Roact on its own, but if you plan on using it for a lot of your components, [roact-flipper](https://github.com/Reselim/roact-flipper) will make that *much* easier.\n\n## Without Roact\n\nCheck out the [demo script](test/demo.client.lua) in the test project!\n\n# License\n\nFlipper is licensed in full under the [MIT license](LICENSE). Note that it [contains code](src/Spring.lua) from another author, which is also under the MIT license.","funding_links":[],"categories":["Motion"],"sub_categories":["Flipper \u003cimg src=\"luau.svg\" width=\"18px\" /\u003e"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FReselim%2FFlipper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FReselim%2FFlipper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FReselim%2FFlipper/lists"}