CAKeyframeAnimation() constructor
The CAKeyframeAnimation() constructor creates a keyframe animation with no property specified yet.
Usually you use CAKeyframeAnimation.animationWithKeyPath(), which creates it and specifies the property in one step.
Syntax
new CAKeyframeAnimation()Parameters
None.
Return value
The new CAKeyframeAnimation. Its keyPath is null; set keyPath before setting values.
Examples
js
const blink = new CAKeyframeAnimation();
console.log(blink.keyPath, blink.values, blink.calculationMode);Result: The console prints null null linear.
Corresponding iOS API
[CAKeyframeAnimation animation].