---
title: "AnimatedStrokeOptions | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> 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.

# Type Alias AnimatedStrokeOptions

AnimatedStrokeOptions:  
    | {  
        activeColor: \[number, number, number, number\];  
        inactiveColor: \[number, number, number, number\];  
    }  
    | false

Options for configuring the animated stroke effect for routes. When an object is provided, it defines colors for active and inactive parts of the route. When `false`, the animated stroke effect is disabled.
