# GH_FadeAnimation class

Namespace: [Grasshopper.GUI](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.gui.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class GH_FadeAnimation
```

Utility class for animating fade ZUI events on the canvas.

## Constructors

- [GH_FadeAnimation](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-fadeanimation/ctor.md): (3 overloads) Creates a new instance of the Animator class with default settings.

## Fields

- [Delay](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-fadeanimation/delay.md): (static) Gets the number of milliseconds between redraws (25 milliseconds, resulting in ~40 fps)

## Properties

- [Duration](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-fadeanimation/duration.md): Gets or sets the duration (in milliseconds) for ZUI animations. Negative durations are not allowed. The default is 350 milliseconds.
- [FadeAlpha](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-fadeanimation/fadealpha.md): Gets the blend alpha byte for the current state. 0 means fully hidden, 255 means fully shown.
- [FadeFactor](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-fadeanimation/fadefactor.md): Gets the blend factor for the current state. 0.0 means fully hidden, 1.0 means fully shown.
- [IsFinished](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-fadeanimation/isfinished.md): Gets a value indicating whether this animator has finished animating.
- [Phase](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-fadeanimation/phase.md): Gets the current animation phase.
- [Threshold](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-fadeanimation/threshold.md): Gets or sets the threshold value for the fade animation trigger.
- [TriggerUpdate](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-fadeanimation/triggerupdate.md): Gets or sets whether this animator triggers canvas updates.

## Methods

- [Evaluate](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-fadeanimation/evaluate.md): (4 overloads) Reevaluate the fade animation parameters. You should call this method from within the Render method of your attributes. If an animation is currently in progress a redraw of the canvas will be scheduled, whether or not the attributes are actually visible on the canvas. You should therefore only call this method if your attributes are already drawing themselves.
