Search
OpacityAnimation Class
Remarks See Also
 





Animates items' opacity for fade-in and fade-out effects.

Namespace: MindFusion.Diagramming.Animations
File: OpacityAnimation.js

 Syntax

JavaScript  Copy Code

// class
OpacityAnimation.prototype = {}

 Remarks

Call item's animate method to run an animation.

 Example

JavaScript  Copy Code
node.animate(
    new OpacityAnimation(
        {
            fromValue: 1,
            toValue: 0.5,
            duration: 250,
            repeat: true,
            repeatCount: 4,
            reverse: true,
            animationType: Animations.AnimationType.BackBow
        }));

 Inheritance Hierarchy

MindFusion.Animations.Animation
    MindFusion.Diagramming.Animations.ItemAnimation
        MindFusion.Diagramming.Animations.OpacityAnimation

 See Also