动画 (Animation)
__zhangheng
这个作者很懒,什么都没留下…
展开
-
自定义 Layer 属性的动画
转自@nixzhu的GitHub主页(译者:@nixzhu),原文《Animating Custom Layer Properties》默认情况下,CALayer 及其子类的绝大部分标准属性都可以执行动画,无论是添加一个 CAAnimation 到 Layer(显式动画),亦或是为属性指定一个动作然后修改它(隐式动画)。但有时候我们希望能同时为好几个属性添加动画,使它们看起...转载 2015-01-22 18:03:48 · 430 阅读 · 0 评论 -
30多个iOS常用动画,带详细注释
//// CoreAnimationEffect.h// CoreAnimationEffect//// Created by VincentXue on 13-1-19.// Copyright (c) 2013年 VincentXue. All rights reserved.// #import <Foundation/Foundation.h> /...转载 2014-08-11 09:48:36 · 421 阅读 · 0 评论 -
Swift 4 动画 - 1. UIView Animations
所有示例代码均可以在 Animations-Demo 下载到iOS 中实现动画有好几种方式,UIView 无疑是最简单的一种,但是所有的动画归根结底还是 layer 层的动画。UIView 层面的动画只是对 layer 层部分属性的封装。我们可以直接对 UIView 的 alpha 、bounds 、center 、frame、transform、backgroundColor(如果vie...转载 2019-06-24 09:51:05 · 1573 阅读 · 0 评论