Creates an action that adjusts the opacity of a node to a new value.
- iOS 8.0+
- macOS 10.10+
- tvOS 9.0+
- watchOS 3.0+
The new opacity value of the node.
The duration, in seconds, of the animation.
A new action object.
When the action executes, the node’s
opacity property animates to its new value.
This action is not reversible; the reverse of this action has the same duration but does not change anything.