Open Source Library Allowing You To Easily Add Spring Animations To Your iOS Interface

Just over a year ago I mentioned a great control from Jonathan Willing allowing you to implement a sliding view effect similar to that found on the iOS springboard to reveal a hidden view similar to that used by the folders on the iOS sprinboard.

Here’s another interesting  library from Jonathan that provides a spring animation effect – with physics as a Core Animation CAKeyFrameAnimation so you can easily use it to add spring animations to your UIKit interface elements.

The class is inspired by the private CASpringAnimation, and you can tweak the stiffness, damping, and mass of the spring.

As Jonathan states in the readme:

This was created in my desire to have an open-source version of the (currently private) CASpringAnimation which was discovered in iOS 6.

Spring animations, when used appropriately, can really enhance the way your app feels to the user by connecting in physical simulations with an app’s interface. And besides, who doesn’t love messing around with springs?

Here’s an animation from the readme showing the effect in action:
springanimation

You can find JNWSpringAnimation on Github here.

A neat way to add a customizable spring animation to your interfaces.

FacebookTwitterDiggStumbleUponGoogle Plus

Original article: Open Source Library Allowing You To Easily Add Spring Animations To Your iOS Interface

©2013 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *