---
title: "MTAnimationOptions | Mobile sdk | Mobile sdk ios | Ios"
description: "Provides animation options for navigation functions."
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# MTAnimationOptions

```
public struct MTAnimationOptions : Sendable, Codable
```

Provides animation options for navigation functions.

-   `[duration](#/s:11MapTilerSDK18MTAnimationOptionsV8durationSdSgvp)`
    
    The animation’s duration, measured in milliseconds.
    
    #### Declaration
    
    Swift
    
    ```
    public var duration: Double?
    ```
    
-   `[offset](#/s:11MapTilerSDK18MTAnimationOptionsV6offsetAA7MTPointVSgvp)`
    
    Point of the target center relative to real map container center at the end of animation.
    
    #### Declaration
    
    Swift
    
    ```
    public var offset: MTPoint?
    ```
    
-   `[shouldAnimate](#/s:11MapTilerSDK18MTAnimationOptionsV13shouldAnimateSbSgvp)`
    
    Boolean indicating whether animation will occur.
    
    #### Declaration
    
    Swift
    
    ```
    public var shouldAnimate: Bool?
    ```
    
-   `[isEssential](#/s:11MapTilerSDK18MTAnimationOptionsV11isEssentialSbSgvp)`
    
    Boolean indicating whether animation is essential.
    
    #### Declaration
    
    Swift
    
    ```
    public var isEssential: Bool?
    ```
    
-   `[easing](#/s:11MapTilerSDK18MTAnimationOptionsV6easingAA8MTEasingOSgvp)`
    
    Rate of the change of the animation.
    
    #### Declaration
    
    Swift
    
    ```
    public var easing: MTEasing?
    ```
    
-   `[init(duration:offset:shouldAnimate:isEssential:easing:)](#/s:11MapTilerSDK18MTAnimationOptionsV8duration6offset13shouldAnimate11isEssential6easingACSdSg_AA7MTPointVSgSbSgAmA8MTEasingOSgtcfc)`
    
    Initializes the options.
    
    #### Declaration
    
    Swift
    
    ```
    public init(
        duration: Double? = nil,
        offset: MTPoint? = nil,
        shouldAnimate: Bool? = nil,
        isEssential: Bool? = nil,
        easing: MTEasing? = nil
    )
    ```
