Popularity
6.9
Stable
Activity
0.0
Stable
950
18
93

Code Quality Rank: L3
Programming language: Swift
License: MIT License
Tags: UI    

ReplaceAnimation alternatives and similar libraries

Based on the "UI" category.
Alternatively, view ReplaceAnimation alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of ReplaceAnimation or a related project?

Add another 'UI' Library

README

ReplaceAnimation

Implementation of Zee Young's Dribbble animation (https://dribbble.com/shots/2067564-Replace)

Info

I really liked Zee Young's animation so I gave it a shot on iOS. Since I wanted to learn some things that I didn't have the chance to get my hands on lately, I tried using constraints to achieve the parallax effect, use CAShapeLayers for the trees and translate the content offset to the bending. Every button and view should be rendered on the device so I could lay them out in a .xib.

It's basically a UICollectionView with a sticky header flow layout (this one is based on https://github.com/Blackjacx/StickyHeaderFlowLayout) and all the parallax effects happen in applyLayoutAttributes:.

I added some jokes from "http://tambal.azurewebsites.net/joke/random" just so it's a little more interesting :)

Refreshing

[alt tag](RefreshSuccess.gif)

Cancelling Refresh Animation

[alt tag](RefreshCancel.gif)

Scrolling

[alt tag](Scrolling.gif)

Contribution

Any contribution is welcome. Just submit a pull request.

Questions?

If you have any questions about why or how I solved certain things or the code doesn't make sense to you, just write me a message on Twitter.

License

Available under MIT license. See the LICENSE for more info.


*Note that all licence references and agreements mentioned in the ReplaceAnimation README section above are relevant to that project's source code only.