Animo是SpriteKit-like 动画 builder
jopen
9年前
Animo是SpriteKit-like 动画 builder,它使得 CALayers更为灵活。Animo turns this:
let positionAnimation = CABasicAnimation(keyPath: "position") positionAnimation.fromValue = NSValue(CGPoint: fromValue) positionAnimation.toValue = NSValue(CGPoint: toValue) positionAnimation.duration = 1 positionAnimation.fillMode = kCAFillModeForwards positionAnimation.removedOnCompletion = false someView.layer.addAnimation(positionAnimation, forKey: "bounds")to this:
someView.layer.runAnimation( Animo.move( from: fromValue, to: toValue, duration: 1, options: Options(fillMode: .Forwards) ) )
官方网站:http://www.open-open.com/lib/view/home/1451626134136