CALayer可动画属性

这些属性用于CAAnimation中的KeyPath设置.
(摘自官方文档, 方便查询.)

表一 CALayer中可以进行动画的属性列表以及它们的默认动画
PropertyDefault animation
anchorPointUses the default implied CABasicAnimation object, described in Table B-2.
backgroundColorUses the default implied CABasicAnimation object, described in Table B-2.
backgroundFiltersUses the default implied CATransition object, described in Table B-3. Sub-properties of the filters are animated using the default implied CABasicAnimation object, described in Table B-2.
borderColorUses the default implied CABasicAnimation object, described in Table B-2.
borderWidthUses the default implied CABasicAnimation object, described in Table B-2.
boundsUses the default implied CABasicAnimation object, described in Table B-2.
compositingFilterUses the default implied CATransition object, described in Table B-3. Sub-properties of the filters are animated using the default implied CABasicAnimation object, described in Table B-2.
contentsUses the default implied CABasicAnimation object, described in Table B-2.
contentsRectUses the default implied CABasicAnimation object, described in Table B-2.
cornerRadiusUses the default implied CABasicAnimation object, described in Table B-2.
doubleSidedThere is no default implied animation.
filtersUses the default implied CABasicAnimation object, described in Table B-2. Sub-properties of the filters are animated using the default implied CABasicAnimation object, described in Table B-2.
frameThis property is not animatable. You can achieve the same results by animating the bounds and position properties.
hiddenUses the default implied CABasicAnimation object, described in Table B-2.
maskUses the default implied CABasicAnimation object, described in Table B-2.
masksToBoundsUses the default implied CABasicAnimation object, described in Table B-2.
opacityUses the default implied CABasicAnimation object, described in Table B-2.
positionUses the default implied CABasicAnimation object, described in Table B-2.
shadowColorUses the default implied CABasicAnimation object, described in Table B-2.
shadowOffsetUses the default implied CABasicAnimation object, described in Table B-2.
shadowOpacityUses the default implied CABasicAnimation object, described in Table B-2.
shadowPathUses the default implied CABasicAnimation object, described in Table B-2.
shadowRadiusUses the default implied CABasicAnimation object, described in Table B-2.
sublayersUses the default implied CABasicAnimation object, described in Table B-2.
sublayerTransformUses the default implied CABasicAnimation object, described in Table B-2.
transformUses the default implied CABasicAnimation object, described in Table B-2.
zPositionUses the default implied CABasicAnimation object, described in Table B-2.
表二: transform属性内的KeyPath
Field Key PathDescription
rotation.xSet to an NSNumber object whose value is the rotation, in radians, in the x axis.
rotation.ySet to an NSNumber object whose value is the rotation, in radians, in the y axis.
rotation.zSet to an NSNumber object whose value is the rotation, in radians, in the z axis.
rotationSet to an NSNumber object whose value is the rotation, in radians, in the z axis. This field is identical to setting the rotation.z field.
scale.xSet to an NSNumber object whose value is the scale factor for the x axis.
scale.ySet to an NSNumber object whose value is the scale factor for the y axis.
scale.zSet to an NSNumber object whose value is the scale factor for the z axis.
scaleSet to an NSNumber object whose value is the average of all three scale factors.
translation.xSet to an NSNumber object whose value is the translation factor along the x axis.
translation.ySet to an NSNumber object whose value is the translation factor along the y axis.
translation.zSet to an NSNumber object whose value is the translation factor along the z axis.
translationSet to an NSValue object containing an NSSize or CGSize data type. That data type indicates the amount to translate in the x and y axis.
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值