【问题标题】:list various layer animations keys for ios列出 ios 的各种图层动画键
【发布时间】:2018-12-14 16:23:29
【问题描述】:

什么是各种图层动画键,谁能告诉我详细信息和示例?如果有任何问题,请告诉我。也请在 cabasicanimations 中帮助其他人。

【问题讨论】:

  • 您的最后一个问题(与此问题内容相同)在一小时前被否决并关闭。现在你又创造了它:D?
  • 你能给我发上一个问题的链接吗
  • 已经从我身边删除了

标签: ios calayer cabasicanimation


【解决方案1】:
Here's everything I'm aware of in terms of animatable properties, keyPaths, and key-value coding extensions. 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 animatable properties:

emitterPosition
emitterZPosition
emitterSize
CAGradientLayer animatable properties:

colors
locations
endPoint
startPoint
CAReplicatorLayer animatable properties:

instanceDelay
instanceTransform
instanceRedOffset
instanceGreenOffset
instanceBlueOffset
instanceAlphaOffset
CAShapeLayer animatable properties:

fillColor
lineDashPhase
lineWidth
miterLimit
strokeColor
strokeStart
strokeEnd
CATextLayer animatable properties:

fontSize
foregroundColor
CATiledLayer animatable properties:

I feel like tileSize is animatable, but documentation doesn't agree. CATransform3D Key-Value Coding Extensions:

rotation.x
rotation.y
rotation.z
rotation
scale.x
scale.y
scale.z
scale
translation.x
translation.y
translation.z
CGPoint keyPaths:

x
y
CGSize keyPaths:

width
height
CGRect keyPaths:

origin
origin.x
origin.y
size
size.width
size.height

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-14
    • 1970-01-01
    • 2012-08-15
    • 1970-01-01
    相关资源
    最近更新 更多