All Projects → KelvinJin → Animatedcollectionviewlayout

KelvinJin / Animatedcollectionviewlayout

Licence: mit
A UICollectionViewLayout subclass that adds custom transitions/animations to the UICollectionView without effecting your existing code.

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to Animatedcollectionviewlayout

Mylinearlayout
MyLayout is a powerful iOS UI framework implemented by Objective-C. It integrates the functions with Android Layout,iOS AutoLayout,SizeClass, HTML CSS float and flexbox and bootstrap. So you can use LinearLayout,RelativeLayout,FrameLayout,TableLayout,FlowLayout,FloatLayout,PathLayout,GridLayout,LayoutSizeClass to build your App 自动布局 UIView UITab…
Stars: ✭ 4,152 (-4.18%)
Mutual labels:  cocoapods, uicollectionview
Campcotcollectionview
Collapse and expand UICollectionView sections with one method call.
Stars: ✭ 161 (-96.28%)
Mutual labels:  cocoapods, uicollectionview
Transitionbutton
UIButton sublass for loading and transition animation.
Stars: ✭ 1,124 (-74.06%)
Mutual labels:  cocoapods, transition
Greedo Layout For Ios
Full aspect ratio grid layout for iOS
Stars: ✭ 837 (-80.68%)
Mutual labels:  cocoapods, uicollectionview
Admozaiccollectionviewlayout
ADMozaicCollectionViewLayout is yet another UICollectionViewLayout subclass that implements "brick", "mozaic" or Pinterest style layout.
Stars: ✭ 226 (-94.78%)
Mutual labels:  cocoapods, uicollectionview
Centeredcollectionview
A lightweight UICollectionViewLayout that 'pages' and centers its cells 🎡 written in Swift
Stars: ✭ 965 (-77.73%)
Mutual labels:  cocoapods, uicollectionview
Stickyheaderflowlayout
Sticky headers for UICollectionView written in pure Swift (based on CSStickyHeaderFlowLayout)
Stars: ✭ 144 (-96.68%)
Mutual labels:  cocoapods, uicollectionview
Closures
Swifty closures for UIKit and Foundation
Stars: ✭ 1,720 (-60.3%)
Mutual labels:  cocoapods, uicollectionview
Infinitecollectionview
Infinite horizontal scrolling using UICollectionView.
Stars: ✭ 218 (-94.97%)
Mutual labels:  cocoapods, uicollectionview
Collor
A declarative-ui framework for UICollectionView with great and useful features.
Stars: ✭ 182 (-95.8%)
Mutual labels:  cocoapods, uicollectionview
Koyomi
Simple customizable calendar component in Swift 📆
Stars: ✭ 716 (-83.48%)
Mutual labels:  cocoapods, uicollectionview
Persei
Animated top menu for UITableView / UICollectionView / UIScrollView written in Swift
Stars: ✭ 3,395 (-21.65%)
Mutual labels:  cocoapods, uicollectionview
Cpcollectionviewkit
Interesting UICollectionView layouts and transitions
Stars: ✭ 140 (-96.77%)
Mutual labels:  transition, uicollectionview
Tangramkit
TangramKit is a powerful iOS UI framework implemented by Swift. It integrates the functions with Android layout,iOS AutoLayout,SizeClass, HTML CSS float and flexbox and bootstrap. So you can use LinearLayout,RelativeLayout,FrameLayout,TableLayout,FlowLayout,FloatLayout,LayoutSizeClass to build your App 自动布局 UIView UITableView UICollectionView
Stars: ✭ 984 (-77.29%)
Mutual labels:  cocoapods, uicollectionview
Collectionviewpaginglayout
a simple but highly customizable paging layout for UICollectionView.
Stars: ✭ 947 (-78.14%)
Mutual labels:  transition, uicollectionview
Vbpiledview
Simple and beautiful stacked UIView to use as a replacement for an UITableView, UIImageView or as a menu
Stars: ✭ 164 (-96.22%)
Mutual labels:  cocoapods, uicollectionview
Gemini
Gemini is rich scroll based animation framework for iOS, written in Swift.
Stars: ✭ 2,965 (-31.57%)
Mutual labels:  cocoapods, uicollectionview
Ehhorizontalselectionview
Horizontal table view style controller
Stars: ✭ 346 (-92.01%)
Mutual labels:  cocoapods, uicollectionview
Swiftyxmlparser
Simple XML Parser implemented in Swift
Stars: ✭ 413 (-90.47%)
Mutual labels:  cocoapods
Swiftuipager
Native Pager in SwiftUI
Stars: ✭ 430 (-90.08%)
Mutual labels:  cocoapods

AnimatedCollectionViewLayout

Normally 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.

CI Status

Parallax ZoomInOut RotateInOut Cards
CrossFade Cube Page

Example

To run the example project, clone the repo, and start iOS Example in Xcode.

Requirements

  • iOS 9.0+

Installation

CocoaPods

To integrate AnimatedCollectionViewLayout into your Xcode project using CocoaPods, specify it in your Podfile:

For Swift 4.2 or above:

pod 'AnimatedCollectionViewLayout'

For Swift 4.1 or below:

pod 'AnimatedCollectionViewLayout', '~> 0.3.0'

Carthage & SPM

Carthage and Swift Package Manager are also supported.

Usage

Get Started

Import the library where you want to use it. Create a AnimatedCollectionViewLayout object, set its animator and assign it to your UICollectionView.

import AnimatedCollectionViewLayout

// ...

let layout = AnimatedCollectionViewLayout()
layout.animator = ParallaxAttributesAnimator()
collectionView.collectionViewLayout = layout

Customization

Most of the built-in animators work best in Paging mode and they have additional parameters that you can tweak for better transitions. You can also write your own animators by implementing the protocol LayoutAttributesAnimator.

Author

Jin Wang

License

AnimatedCollectionViewLayout is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].