动画库 CPAnimationSequence
来源:互联网 发布:淘宝图片怎么拍摄 编辑:程序博客网 时间:2024/05/16 19:26
https://github.com/yangmeyer/CPAnimationSequence
CPAnimationSequence
Declaratively describe animation sequences that consist of multiple steps.
Something like this:
CPAnimationSequence* shakespeare = [CPAnimationSequence sequenceWithSteps: [CPAnimationStep for:0.2 animate:^{ self.romeo.alpha = 1.0; self.julia.alpha = 1.0; }], [CPAnimationStep after:1.0 for:0.7 animate:^{ CGPoint kiss = CGPointMake((self.romeo.center.x + self.julia.center.x)/2, (self.romeo.center.y + self.julia.center.y)/2); self.romeo.center = kiss; self.julia.center = kiss; }], [CPAnimationStep after:2.0 for:0.5 animate:[self dramaticDeathAnimationStep]], [CPAnimationStep for:0.0 animate:^{ self.theEnd.hidden = NO; }], nil];[shakespeare runAnimated:YES];
I described the rationale and possible improvements on the compeople developer blog on Mobile Apps.
CPAnimationProgram
With the addition of CPAnimationProgram, you can now also run steps (and sequences, and programs) in parallel, or overlap steps (and sequences, and programs).
This is still somewhat experimental, so you might run into problems with particularly complex overlaps. It does seem to work well, though, so give it a try.
Composite pattern
The component implements the Composite design pattern, which means that you can nest sequences and programs as much as device memory and your sanity allow.
- 动画库 CPAnimationSequence
- 动画库
- css3常用动画+动画库
- ss3常用动画+动画库
- js匀速动画及动画库
- Lemon动画库介绍
- android动画库
- Android动画库
- android加载动画库
- WoWoViewPager动画库
- css3动画库
- css3动画库
- NineOldAndroids动画库
- android动画库
- IOS动画库汇总
- 强大的动画库
- Vivify动画库
- 动画
- windows资源管理器作为ftp的客户端
- qt中的虚函数(疑问)
- [动态规划]3.4.4 Raucous Rockers
- cocos2d-x学习笔记(3)--重要概念
- linux下i386,i486,i586,i686的区别
- 动画库 CPAnimationSequence
- ATI自动化测试电子杂志2012年7月版下载
- 最大值最小化问题
- 备忘录模式
- 表白失败,还是好好写程序吧
- PHP特级视频教程 笔记心得 第十四集 MySQL分区实验 MySQL分区实战
- 指针之对未声明的地址进行访问
- c#解析json文件的方法
- PHP特级视频教程 笔记心得 第十五集 mysql调优,mysql优化 MySQL基础操作(一)