<!--
{
  "availability" : [
    "Reality Composer Pro: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ComputeGraph",
  "identifier" : "/documentation/ComputeGraph/output/fadeInOut",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Compute Graph"
    ],
    "preciseIdentifier" : "output::fadeInOut"
  },
  "title" : "output::fadeInOut"
}
-->

# output::fadeInOut

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

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

## 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.

> Deprecated: This node is not general purpose and will be moved
> Visual: ![Graph](output__fadeInOut)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)