<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Animation/easeOut(duration:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI9AnimationV7easeOut8durationACSd_tFZ"
  },
  "title" : "easeOut(duration:)"
}
-->

# easeOut(duration:)

An animation with a specified duration that starts quickly and then
slows towards the end of the movement.

```
static func easeOut(duration: TimeInterval) -> Animation
```

## Parameters

`duration`

The length of time, expressed in seconds, that
the animation takes to complete.

## Return Value

An ease-out animation with a specified duration.

## Discussion

An easing animation provides motion with a natural feel by varying
the acceleration and deceleration of the animation, which matches
how things tend to move in reality. With an ease out animation, the
motion starts quickly and decreases its speed towards the end.

Use `easeOut(duration:)` when you want to specify the time it takes
for the animation to complete. Otherwise, use [`easeOut`](/documentation/SwiftUI/Animation/easeOut) to perform
the animation for a default length of time.

The following code shows an example of animating the size changes of
a [`Circle`](/documentation/SwiftUI/Circle) using an ease out animation with a duration of one
second.

```
struct ContentView: View {
    @State private var scale = 0.5

    var body: some View {
        VStack {
            Circle()
                .scale(scale)
                .animation(.easeOut(duration: 1.0), value: scale)
            HStack {
                Button("+") { scale += 0.1 }
                Button("-") { scale -= 0.1 }
            }
        }
    }
}
```

![A video that shows a circle enlarging for one second, then shrinking for another second to its original size using an ease-out animation.](videos/com.apple.SwiftUI/animation-11-easeout-duration~dark.mp4)

---

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)