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

# scale(to:duration:)

Creates an action that uniformly changes the scale factor of a node to an absolute value.

## Declaration

```swift
class func scale(to scale: CGFloat, duration sec: TimeInterval) -> SCNAction
```

## Parameters

- `scale`: The new value for all three components of the node’s scale.
- `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 scale property animates to the new value. This action is not reversible; the reverse of this action has the same duration but does not change anything.

## See Also

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

- [scale(by:duration:)](scenekit/scnaction/scale(by:duration:).md)
