{"id":2342,"url":"https://github.com/KelvinJin/AnimatedCollectionViewLayout","last_synced_at":"2025-08-02T23:33:14.067Z","repository":{"id":44845668,"uuid":"81298092","full_name":"KelvinJin/AnimatedCollectionViewLayout","owner":"KelvinJin","description":"A UICollectionViewLayout subclass that adds custom transitions/animations to the UICollectionView without effecting your existing code.","archived":false,"fork":false,"pushed_at":"2020-09-20T07:09:55.000Z","size":2159,"stargazers_count":4688,"open_issues_count":27,"forks_count":347,"subscribers_count":72,"default_branch":"master","last_synced_at":"2024-04-24T14:47:41.502Z","etag":null,"topics":["animation","cocoapods","ios","swift","transition","uicollectionview","uicollectionviewlayout-subclass"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/KelvinJin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-08T06:57:03.000Z","updated_at":"2024-04-24T03:15:07.000Z","dependencies_parsed_at":"2022-08-12T11:40:14.846Z","dependency_job_id":null,"html_url":"https://github.com/KelvinJin/AnimatedCollectionViewLayout","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KelvinJin%2FAnimatedCollectionViewLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KelvinJin%2FAnimatedCollectionViewLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KelvinJin%2FAnimatedCollectionViewLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KelvinJin%2FAnimatedCollectionViewLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KelvinJin","download_url":"https://codeload.github.com/KelvinJin/AnimatedCollectionViewLayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228503193,"owners_count":17930534,"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":["animation","cocoapods","ios","swift","transition","uicollectionview","uicollectionviewlayout-subclass"],"created_at":"2024-01-05T20:16:11.346Z","updated_at":"2024-12-06T17:31:01.717Z","avatar_url":"https://github.com/KelvinJin.png","language":"Swift","funding_links":[],"categories":["UI","Swift","HarmonyOS","Content"],"sub_categories":["Animation","Other free courses","Windows Manager","Layout"],"readme":"# AnimatedCollectionViewLayout\n\nNormally a `UICollectionView` has no transition effects when you scroll from one item to another. There are lots of ways to write animations for UICollectionView, but using a UICollectionViewLayout subclass is by far the simplest one. And it doesn't break any of your existing code. You can still use your UICollectionView subclass and you don't need to change your UICollectionViewCell. Just plug and enjoy.\n\n![CI Status](https://travis-ci.org/KelvinJin/AnimatedCollectionViewLayout.svg?branch=master)\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003cth\u003eParallax\u003c/th\u003e\n\u003cth\u003eZoomInOut\u003c/th\u003e\n\u003cth\u003eRotateInOut\u003c/th\u003e\n\u003cth\u003eCards\u003c/th\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cimg src=\"http://i.imgur.com/v8JuRYj.gif\"/\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cimg src=\"http://i.imgur.com/lLooXQ7.gif\"/\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cimg src=\"http://i.imgur.com/lCNh5mg.gif\"/\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cimg src=\"http://i.imgur.com/joA1emB.gif\"/\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003cth\u003eCrossFade\u003c/th\u003e\n\u003cth\u003eCube\u003c/th\u003e\n\u003cth\u003ePage\u003c/th\u003e\n\u003cth\u003e\u003c/th\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cimg src=\"http://i.imgur.com/U1hOKYo.gif\"/\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cimg src=\"http://i.imgur.com/897mcdm.gif\"/\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cimg src=\"http://i.imgur.com/HRcvRIV.gif\"/\u003e\u003c/td\u003e\n\u003ctd\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n## Example\n\nTo run the example project, clone the repo, and start `iOS Example` in Xcode.\n\n## Requirements\n\n- iOS 9.0+\n\n## Installation\n\n### CocoaPods\n\nTo integrate AnimatedCollectionViewLayout into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\nFor Swift 4.2 or above:\n\n```ruby\npod 'AnimatedCollectionViewLayout'\n```\n\nFor Swift 4.1 or below:\n\n```ruby\npod 'AnimatedCollectionViewLayout', '~\u003e 0.3.0'\n```\n\n### Carthage \u0026 SPM\n\nCarthage and Swift Package Manager are also supported.\n\n## Usage\n\n### Get Started\n\nImport the library where you want to use it. Create a `AnimatedCollectionViewLayout` object, set its `animator` and assign it to your `UICollectionView`.\n\n```swift\nimport AnimatedCollectionViewLayout\n\n// ...\n\nlet layout = AnimatedCollectionViewLayout()\nlayout.animator = ParallaxAttributesAnimator()\ncollectionView.collectionViewLayout = layout\n```\n\n### Customization\n\nMost of the built-in animators work best in **Paging** mode and they have additional parameters that you can tweak for better transitions.\nYou can also write your own animators by implementing the protocol `LayoutAttributesAnimator`.\n\n## Author\n\n[Jin Wang](https://twitter.com/jinw1990)\n\n\n## License\n\nAnimatedCollectionViewLayout is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKelvinJin%2FAnimatedCollectionViewLayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKelvinJin%2FAnimatedCollectionViewLayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKelvinJin%2FAnimatedCollectionViewLayout/lists"}