{"id":18270694,"url":"https://github.com/xyfeng/XYOrigami","last_synced_at":"2025-04-05T01:30:48.816Z","repository":{"id":3420506,"uuid":"4471669","full_name":"xyfeng/XYOrigami","owner":"xyfeng","description":null,"archived":false,"fork":false,"pushed_at":"2012-08-28T03:18:58.000Z","size":2550,"stargazers_count":651,"open_issues_count":4,"forks_count":90,"subscribers_count":38,"default_branch":"master","last_synced_at":"2025-03-29T21:05:35.198Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/xyfeng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-05-28T15:08:22.000Z","updated_at":"2025-01-08T22:31:53.000Z","dependencies_parsed_at":"2022-09-21T13:10:45.468Z","dependency_job_id":null,"html_url":"https://github.com/xyfeng/XYOrigami","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/xyfeng%2FXYOrigami","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyfeng%2FXYOrigami/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyfeng%2FXYOrigami/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyfeng%2FXYOrigami/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xyfeng","download_url":"https://codeload.github.com/xyfeng/XYOrigami/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276043,"owners_count":20912286,"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-05T11:38:48.839Z","updated_at":"2025-04-05T01:30:46.664Z","avatar_url":"https://github.com/xyfeng.png","language":"JavaScript","funding_links":[],"categories":["etc"],"sub_categories":[],"readme":"# XYOrigami\n\nXYOrigami is an simple and easy-to-use view transition for iOS app. Inspired by HonCheng’s next train [video](http://www.honcheng.com/2012/02/Playing-with-folding-navigations), XYOrigami is a simpler version of folding transition. It is an add-on category of UIView, with two functions you can animate showing/hiding another view.\n \n[UPDATE] If you are looking for dragging support, please check out HonCheng's [git](https://github.com/honcheng/PaperFold-for-iOS).\n\n## Features\n* Category of UIView\n* Customize the number of paper folds\n* Support two opening directions(left \u0026 right)\n* Easy adjust animation duration\n* Completion block call back function\n* ARC(Automatic Reference Counting) support\n* Support top and bottom directions[UPDATE]\n\n## Installation\n* Drag the XYOrigami/XYOrigami folder into your project.\n* Add the QuartzCore framework to your project.\n\n## Usage\n(see example Xcode project in /Demo)\n\n### Open view transition\n\t[self.centerView showOrigamiTransitionWith:self.sideView\n\t\t\t\t\t\t\t\t NumberOfFolds:2\n\t\t\t\t\t\t\t\t\t  Duration:0.5\n\t\t\t\t\t\t\t\t\t Direction:XYOrigamiDirectionFromRight\n\t\t\t\t\t\t\t\t\tcompletion:^(BOOL finished) {\n\t\t\t\t\t\t\t\t\t\tNSLog(@\"animation completed.\");\n\t\t\t\t\t\t\t\t\t}];\n\n### Close view transition:\n\t[self.centerView hideOrigamiTransitionWith:self.sideView\n\t\t\t\t\t\t\t\t NumberOfFolds:2\n\t\t\t\t\t\t\t\t\t  Duration:0.5\n\t\t\t\t\t\t\t\t\t Direction:XYOrigamiDirectionFromRight\n\t\t\t\t\t\t\t\t\tcompletion:^(BOOL finished) {\n\t\t\t\t\t\t\t\t\t\tNSLog(@\"animation completed.\");\n\t\t\t\t\t\t\t\t\t}];\n## Demo\n(see demo video on [Vimeo](http://vimeo.com/42979668))\n\n![image](https://github.com/xyfeng/XYOrigami/raw/master/Demo/Demo.gif)\n\n## Credit\nXYOrigami is brought to you by [XY Feng](http://xystudio.cc/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyfeng%2FXYOrigami","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxyfeng%2FXYOrigami","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyfeng%2FXYOrigami/lists"}