Giter VIP home page Giter VIP logo

customcirclezoomtransition's Introduction

Custom Circle Zoom/Fade UIView Controller Transition

This project is created as an example to show how to animate a view and complete a fade transition using iOS7's UIViewControllerTransitioningDelegate || UIViewControllerAnimatedTransitioning protocols.

Version

1.0 - Initial Commit

Animation/Transition Process

Circle Views are created by creating equal height/width UIViews with the layer.cornerRadius set at 1/2 the width. The views are added with AutoLayout constraints. When a circle view is tapped the following occurs:

  • Animate circle to 0.5 transform
  • Animate circle to 10 transform
  • Begin transition to fade in the next UIViewController

For the reverse the following occurs:

  • Fade original (first) UIViewController back in
  • Within viewWillAppear we begin to animate the circle back to its standard form
  • Within viewDidAppear we pickup this view and continue the animation to 0.5 transform
  • Animate circle to 1.5 transform
  • Animate back to standard form

Code Examples

There are two starting UIViewController examples. One has only one circle and the other has multiple (three circles).
By default the multi circle view is loaded. Comment out the three lines in App Delegate - didFinishLaunchingWithOptions for the single circle view approach.

    UIStoryboard *mainstoryboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
    UINavigationController *navVC = [[UINavigationController alloc] initWithRootViewController:[mainstoryboard instantiateViewControllerWithIdentifier:@"Multi"]];
    
    self.window.rootViewController = navVC;

License

MIT - http://opensource.org/licenses/MIT

Please link back to me/this project if you use it in anyway.

Links

Stuart Morris Github
@MorrisStuart
LinkedIn

Updates

If you have any recommended updates please notify me using any of the above methods.
If you find any issues please create an issue/pull request for an update.

Thanks

customcirclezoomtransition's People

Contributors

stuartmorris0 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.