---
title: "fadeOut(duration:)"
framework: scenekit
role: symbol
role_heading: Type Method
path: "scenekit/scnaction/fadeout(duration:)"
---

# fadeOut(duration:)

Creates an action that changes the opacity of the node to 0.0.

## Declaration

```swift
class func fadeOut(duration sec: TimeInterval) -> SCNAction
```

## Parameters

- `sec`: The duration, in seconds, of the animation.

## Return Value

Return Value A new action object.

## Discussion

Discussion When the action executes, the node’s opacity property animates from its current value to 0.0. This action is reversible; the reverse is created as if the following code had been executed: [SCNAction fadeInWithDuration: sec];

## See Also

### Creating Actions That Change a Node’s Opacity

- [fadeIn(duration:)](scenekit/scnaction/fadein(duration:).md)
- [fadeOpacity(by:duration:)](scenekit/scnaction/fadeopacity(by:duration:).md)
- [fadeOpacity(to:duration:)](scenekit/scnaction/fadeopacity(to:duration:).md)
