{"id":18763713,"url":"https://github.com/inloop/parallaxanimation","last_synced_at":"2025-12-06T04:30:23.948Z","repository":{"id":77722276,"uuid":"69353263","full_name":"inloop/ParallaxAnimation","owner":"inloop","description":"iOS UICollectionView layout parallax effect example","archived":false,"fork":false,"pushed_at":"2016-10-05T12:12:46.000Z","size":34955,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-12-29T05:26:17.727Z","etag":null,"topics":[],"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/inloop.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-27T12:15:39.000Z","updated_at":"2018-09-30T10:31:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"c47d2b80-3af0-4e79-97a4-8df90dbc9a2a","html_url":"https://github.com/inloop/ParallaxAnimation","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/inloop%2FParallaxAnimation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inloop%2FParallaxAnimation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inloop%2FParallaxAnimation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inloop%2FParallaxAnimation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inloop","download_url":"https://codeload.github.com/inloop/ParallaxAnimation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239661864,"owners_count":19676411,"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-07T18:27:10.939Z","updated_at":"2025-12-06T04:30:22.082Z","avatar_url":"https://github.com/inloop.png","language":"Swift","readme":"# ParallaxAnimation\n\nSimple parallax example for Horizontal and Vertical direction using UICollectionViewLayout modification.\n\n![Parallax animation](demo-gif/parallax.gif)\n\n```swift\noverride class var layoutAttributesClass: AnyClass {\n        get {\n            return ParallaxLayoutAttributes.classForCoder()\n        }\n}\n\noverride func shouldInvalidateLayout(forBoundsChange newBounds: CGRect) -\u003e Bool {\n        return true\n}\n```\n\nBy overriding var and method like above the developer is able to implement these delegate methods and mofify the collectionViewCell however he wants.\n\n```swift\noverride func layoutAttributesForElements(in rect: CGRect) -\u003e [UICollectionViewLayoutAttributes]?\n\noverride func layoutAttributesForItem(at indexPath: IndexPath) -\u003e UICollectionViewLayoutAttributes?\n\noverride func apply(_ layoutAttributes: UICollectionViewLayoutAttributes)\n```\n\n## Requirements\n* iOS 9.0+\n* Xcode 8.0+\n* Swift 3.0+\n\n## Author\nMartinPrusa, martin.prusa@inloop.eu\n\n## License\nParallaxAnimation is available under the MIT license. See the LICENSE file for more info.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finloop%2Fparallaxanimation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finloop%2Fparallaxanimation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finloop%2Fparallaxanimation/lists"}