<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNAction/fadeIn(duration:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNAction(cm)fadeInWithDuration:"
  },
  "title" : "fadeIn(duration:)"
}
-->

# fadeIn(duration:)

Creates an action that changes the opacity of the node to `1.0`.

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

## Parameters

`sec`

The duration, in seconds, of the animation.

## Return Value

A new action object.

## Discussion

When the action executes, the node’s [`opacity`](/documentation/SceneKit/SCNNode/opacity) property animates from its current value to `1.0`.

This action is reversible; the reverse is created as if the following code had been executed:

```objc
[SCNAction fadeOutWithDuration: sec];
```

---

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)