<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SKTransition/flipHorizontal(withDuration:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKTransition(cm)flipHorizontalWithDuration:"
  },
  "title" : "flipHorizontal(withDuration:)"
}
-->

# flipHorizontal(withDuration:)

Creates a transition where the two scenes are flipped across a horizontal line running through the center of the view.

```
class func flipHorizontal(withDuration sec: TimeInterval) -> SKTransition
```

## Parameters

`sec`

The duration of the transition.

## Return Value

A new transition.

## Discussion

---

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)