问题描述
我看过文档,但发现其中缺少 transform.scale.xy之类的内容:[CoreAnimation指南] [1]有更完整的列表吗?
I've looked in the documentation but I noticed it's missing some like "transform.scale.xy": [CoreAnimation Guide][1] is there a more complete list?
推荐答案
在动画属性,keyPath和键值编码扩展方面,这是我所知道的一切。
Here's everything I'm aware of in terms of animatable properties, keyPaths, and key-value coding extensions.
CALayer 可设置动画的图层属性-下面的所有其他CALayer类型都继承自CALayer,因此这些属性也适用于这些属性:
CALayer Animatable layer properties -- the other CALayer types below all inherit from CALayer, so these also apply to those:
anchorPoint
backgroundColor
backgroundFilters
borderColor
borderWidth
bounds
compositingFilter
contents
contentsRect
cornerRadius
doubleSided
filters
frame
hidden
mask
masksToBounds
opacity
position
shadowColor
shadowOffset
shadowOpacity
shadowPath
shadowRadius
sublayers
sublayerTransform
transform
zPosition
CAEmitterLayer 可变属性:
emitterPosition
emitterZPosition
emitterSize
CAGradientLayer 可设置动画的属性:
colors
locations
endPoint
startPoint
CAReplicatorLayer 动画属性:
instanceDelay
instanceTransform
instanceRedOffset
instanceGreenOffset
instanceBlueOffset
instanceAlphaOffset
CAShapeLayer 可设置动画的属性:
fillColor
lineDashPhase
lineWidth
miterLimit
strokeColor
strokeStart
strokeEnd
CATextLayer 可动画属性:
fontSize
foregroundColor
CATiledLayer 可设置动画的属性:
I feel like tileSize is animatable, but documentation doesn't agree.
CATransform3D 键值编码扩展:
rotation.x
rotation.y
rotation.z
rotation
scale.x
scale.y
scale.z
scale
translation.x
translation.y
translation.z
CGPoint 键路径:
x
y
CGSize 键路径:
width
height
CGRect 键路径:
origin
origin.x
origin.y
size
size.width
size.height
这些是 的 和 。
These are Appendix B of the Core Animation Programming Guide, and Appendix C of the same.
这篇关于CABasicAnimation的完整Keypath列表是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!