---
title: "scaleY(to:duration:)"
framework: spritekit
role: symbol
role_heading: Type Method
path: "spritekit/skaction/scaley(to:duration:)"
---

# scaleY(to:duration:)

Creates an action that changes the y scale value of a node to a new value.

## Declaration

```swift
class func scaleY(to scale: CGFloat, duration: TimeInterval) -> SKAction
```

## Parameters

- `scale`: The new value for the node’s y scale value.
- `duration`: The duration of the animation.

## Return Value

Return Value A new action object.

## Discussion

Discussion When the action executes, the node’s yScale 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

### Animating the Scaling of a Node

- [scale(by:duration:)](spritekit/skaction/scale(by:duration:).md)
- [scale(to:duration:)](spritekit/skaction/scale(to:duration:)-43bz6.md)
- [scale(to:duration:)](spritekit/skaction/scale(to:duration:)-1xyzs.md)
- [scaleX(by:y:duration:)](spritekit/skaction/scalex(by:y:duration:).md)
- [scaleX(to:y:duration:)](spritekit/skaction/scalex(to:y:duration:).md)
- [scaleX(to:duration:)](spritekit/skaction/scalex(to:duration:).md)
