Keyframe
The Keyframe
object is the core of animations. You can instantiate it like this:
Keyframes are always relative to the start of a Clip
. In this example, a particular property will be 0
at frame 0
and 100
at frame 12
. What happens after frame 12
is determined by the extrapolation
behavior of the keyframe. The default is clamp
, causing the value to stay between 0
and 100
outside the input range. Alternatively, extend
will extrapolate the values beyond the input range.
Here is an example with all available properties:
You can apply Keyframes to various properties such as:
- Position x
- Position y
- Translate x
- Translate y
- Rotation
- Opacity
Example
In this example, multiple values of the Text Clip will be animated.
Keyframes are not limited to just two values, you just need to make sure the lenght of the input range equals the lenght of the output range.