A FigureElement has color and opacity properties. The color
property has an alpha channel that defines opacity, but it should be used
as a base color definition, and not used to dissolve an element in and out.
Therefore, to animate an element's opacity or temporarily dissolve in or out
an element, use an opacity animation step.
The opacity is multiplied by the
color alpha channel to get the final opacity of the element.
By default, the opacity will start with the FigureElement's current
opacity unless dissolving. If dissolving, the opacity will start at 0 if
dissolving in, or 1 if dissolving out unless dissolveFromCurrent is
true in which case the opacity will start from the current opacity.
Opacity Animation Step
A FigureElement has
colorandopacityproperties. Thecolorproperty has an alpha channel that defines opacity, but it should be used as a base color definition, and not used to dissolve an element in and out.Therefore, to animate an element's opacity or temporarily dissolve in or out an element, use an opacity animation step.
The
opacityis multiplied by thecoloralpha channel to get the final opacity of the element.By default, the opacity will start with the FigureElement's current opacity unless dissolving. If dissolving, the opacity will start at
0if dissolving in, or1if dissolving out unlessdissolveFromCurrentistruein which case the opacity will start from the current opacity.The DissolveInAnimationStep and DissolveOutAnimationStep extend the
OpacityAnimationStepto make it even more convenient to dissolve.Param: options
See
To test examples, append them to the boilerplate
Example
Example
Example
Example