---
title: "output::fadeInOut"
framework: Compute Graph
role: symbol
role_heading: Function
platforms: [iOS 27.0+, iPadOS 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: computegraph/output/fadeinout
---

# output::fadeInOut

Applies a smooth fade-in and fade-out animation to the rendered output.

## Declaration

```swift
void output::fadeInOut()
```

## Discussion

Discussion This function modulates the output alpha to create a fade-in effect over the first 0.5 seconds of the element’s lifetime and a fade-out effect over the last 0.5 seconds before the element expires. The two fades are multiplied together with the existing alpha, producing a smooth lifecycle transition. note: This node is not general purpose and will be moved Visual:
