Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hossamghareeb/Facebook-POP-Tutorial
Facebook's Pop Framework, By Examples
https://github.com/hossamghareeb/Facebook-POP-Tutorial
animation facebook facebook-pop-tutorial pop pop-framework tutorial
Last synced: 3 months ago
JSON representation
Facebook's Pop Framework, By Examples
- Host: GitHub
- URL: https://github.com/hossamghareeb/Facebook-POP-Tutorial
- Owner: hossamghareeb
- License: mit
- Created: 2014-10-20T17:39:07.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-26T15:36:45.000Z (over 9 years ago)
- Last Synced: 2024-04-24T14:46:55.794Z (6 months ago)
- Topics: animation, facebook, facebook-pop-tutorial, pop, pop-framework, tutorial
- Language: Objective-C++
- Homepage:
- Size: 4.06 MB
- Stars: 187
- Watchers: 7
- Forks: 31
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-ios - Pop By Example - A project tutorial in how to use Pop animation framework by example. (UI / Animation)
- awesome-ios-star - Pop By Example - A project tutorial in how to use Pop animation framework by example. (UI / Animation)
README
Facebook's Pop Framework, By Examples
---This project is a tutorial ([Check tutorial here](http://www.appcoda.com/facebook-pop-framework-intro/ "Facebook Pop Tutorial")) for how to use Pop framework by Facebook. Its very easy and effecient framework that helps you to make decent animation in no time.
In this project you will find some simple demoes, they are not big demoes but I promise you, they will help you in mastering the framework.### What is Pop?
Pop is an extensible animation engine for both iOS and OS X. In addition to basic animations including Linear, Ease-In, Ease-Out, Ease-In-Ease-Out animations, it supports spring (at the time of its release, spring animation was not supported in iOS), decay and custom animations:- Spring: dynamic animation that creates a nice bouncing effect.
- Decay: dynamic animation that brings a movement to a smooth halt.
- Custom: because the engine is designed to be extensible, you can create your own custom animations.The Pop API is very developer friendly that lets you easily build some realistic, physics-based interactions. For instance, here is the code snippet for creating a spring animation on a text label:
```Objective-c
POPSpringAnimation *sprintAnimation = [POPSpringAnimation animationWithPropertyNamed:kPOPViewScaleXY];
sprintAnimation.toValue = [NSValue valueWithCGPoint:CGPointMake(0.9, 0.9)];
sprintAnimation.velocity = [NSValue valueWithCGPoint:CGPointMake(2, 2)];
sprintAnimation.springBounciness = 20.f;
[self.textLabel pop_addAnimation:sprintAnimation forKey:@"springAnimation"];
```For Swift Lovers
---
Navigate to this "Swift Version" folder or ([click here](https://github.com/hossamghareeb/Facebook-POP-Tutorial/tree/master/Swift%20Version "Swift Version")) to see the full working exmples written in Swift.Pop Examples
---### Animate UITableView cells selection:
### Facebook Messenger Send/Like animation:
### UITextField wrong entry animation:
### Custom Transition for Modal ViewControllers:
License
---The MIT License (MIT)
**Copyright (c) 2014 Hossam Ghareeb ([email protected])**
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.