# duration

> Duration of the transition.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.3/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AnimationModule

```csharp
public float duration { get; }
```

### Remarks

Depending on [AnimatorTransitionInfo.durationUnit](/engine/6000.3/script-reference/unityengine/animatortransitioninfo/durationunit.md) the duration can either be expressed in seconds (i.e. [DurationUnit.Fixed](/engine/6000.3/script-reference/unityengine/durationunit/fixed.md)) or in percentage (i.e. [DurationUnit.Normalized](/engine/6000.3/script-reference/unityengine/durationunit/normalized.md)). A normalized duration is based on the source state duration.

Note: a normalized duration converted in seconds can change from frame to frame, since the source state duration can change depending on varying factors, like the weights in a blendtree.
