Any numeric property can be linked to another numeric property so that when one changes, the other follows.
Linking:
The driven property now mirrors the source property's value. The link is live and animatable — if the source is keyframed, the driven property follows.
For cases where simple linking is not sufficient, an expression can be written to compute a property value dynamically.
Expression language: A simple JavaScript-like syntax evaluated per frame.
Available variables in expressions:
time,current time in secondsframe,current frame numberwidth, height — canvas dimensionsvalue,the property's current keyframed value (expressions can modify keyframed values rather than replace them)thisElement,reference to the current elementthisProperty,reference to the current propertyOscillate position:
This adds a sine wave oscillation on top of the existing keyframed position value.
Rotate continuously:
The element rotates 120 degrees per second, indefinitely.
Wiggle (random oscillation):
wiggle(frequency, amplitude),the element randomly oscillates 15px at 3 oscillations per second.