PropertyTargetEasingInterpolator
¶
Use a Property Target Easing Interpolator when you want to create a smooth transition between the current value of a property and a value that you set dynamically. In a Property Target Easing Interpolator you can set the easing curve, easing mode, and the duration of the transition. When you set a property value without a Property Target Easing Interpolator, Kanzi applies the value to that property immediately. For example, when you use the Object::setProperty() function, Kanzi applies the value immediately.
Every time the value of the target property changes, Property Target Easing Interpolator starts to apply the animation from the current value of the target property to the new value of the target property. Use the setInterpolationDuration() function to set the value of the InterpolationDurationProperty property which determines the duration of the animation. The Property Target Easing Interpolator applies to the animation:
If the value of the target property changes during an interpolating animation, the Property Target Easing Interpolator stops that animation and starts a new animation. Use the setInterpolationIfInterruptedMode() function to set the value of the InterpolationIfInterruptedModeProperty property which determines from where the animation starts:
There is no interpolation between the old and the new animations.
You can use the Property Target Easing Interpolator to interpolate properties of these data types:
Gradually interpolates a target property from its old value to a new value using a specific easing function and easing mode each time a new value is set to the property.
Inherits properties and message types from PropertyTargetEasingInterpolatorMetadata.
Creates an instance of PropertyTargetEasingInterpolator.
| name | (string) | The name of the PropertyTargetEasingInterpolator. |
| (PropertyTargetEasingInterpolator) | The created PropertyTargetEasingInterpolator. |