---
title: "fade(value:duration:)"
framework: phase
role: symbol
role_heading: Instance Method
path: "phase/phasenumbermetaparameter/fade(value:duration:)"
---

# fade(value:duration:)

Sets the value gradually over the given amount of time.

## Declaration

```swift
func fade(value: Double, duration: TimeInterval)
```

## Parameters

- `value`: A new value for the metaparameter.
- `duration`: An amount of time in which the number gradually adjusts to the new value.
