#import "ViewController.h"@interface ViewController ()@property(nonatomic,strong)UIButton *btn;@property(nonatomic,strong)CALayer *calayer;@end@implem...
分类:
其他好文 时间:
2015-04-13 12:36:36
阅读次数:
199
Android 3.0以前,android支持两种动画模式,tween animation,frame animation,在android3.0中又引入了一个新的动画系统:property animation,这三种动画模式在SDK中被称为view animation,drawable anima...
分类:
移动开发 时间:
2015-04-13 12:29:13
阅读次数:
257
使用Mecanim动画系统有时会遇到大量转换连线导致状态图特别复杂杂乱。这时很多人希望能像旧的动画系统Animation那样用Play()函数来控制动画。MecanimControl正式解决这问题的方案。获取MecanimControl插件。官网购买地址https://www.assetstore.unity3d.com/en/#!/content/1515..
分类:
其他好文 时间:
2015-04-13 07:08:07
阅读次数:
248
Activity 就是Android中的活动,是Android系统中唯一一个可见组件。
Activity中官网中有一句话:
The visible
lifetime of an activity happens between a call to onStart() until
a corresponding call to onStop()
这句话的意思是可以看见Act...
分类:
移动开发 时间:
2015-04-12 22:50:14
阅读次数:
329
这是一篇翻译文章。原文出处:http://www.raywenderlich.com/95910/uiview-animation-swift-tutorial 动画( animation)是iOS用户界面中非常重要的知识。动画可以吸引用户的注意力,使程序更加美观生动。 更值得注意的是,在扁平化设计...
分类:
移动开发 时间:
2015-04-12 21:05:26
阅读次数:
222
在上文当中,我们描述了如何使用TextSwitcher控件。本文将通过分析Android Framework层源码来阐释它是如何实现文本的平滑切换的的。TextSwitcher的类继承关系
有此继承结构我们可以知道,TextSwitcher:
- 继承自FrameLayout,所以其子View层叠地放置着
- 继承自ViewAnimator,所以其持有两个Animation对象,用于呈现淡出、...
分类:
移动开发 时间:
2015-04-12 13:28:32
阅读次数:
131
3个属性:transition,animation,transform实现步骤:1.css定位 2.rgba设置颜色透明度 3.转换+动画 transform+animation 4.动画平滑过渡 transition========================美丽分割线============...
分类:
Web程序 时间:
2015-04-12 01:15:47
阅读次数:
298
先上效果图: 主要的类: #include "Hole.h"#include #include "ccMacros.h"Hole::Hole(void){ this->image = NULL; this->animation = NULL; this->hit = NU...
分类:
其他好文 时间:
2015-04-11 16:07:12
阅读次数:
133
适当的添加一些动画效果,能够获得更好的用户体验,这次讲讲一些常见的动画~
如:透明动画,渐变动画等等。...
分类:
移动开发 时间:
2015-04-11 13:15:57
阅读次数:
176
$(window).load(function() { $('.flexslider').flexslider({ namespace: 'flex-', //控件的命名空间,会影响样式前缀 animation: "slide", //String: Sel...
分类:
Web程序 时间:
2015-04-10 19:42:57
阅读次数:
173