---
title: "SVGAnimatedString | 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.

# Interface SVGAnimatedString

The **`SVGAnimatedString`** interface represents string attributes which can be animated from each SVG declaration. You need to create SVG attribute before doing anything else, everything should be declared inside this.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString)

interface SVGAnimatedString {  
    [animVal](#animval): string;  
    [baseVal](#baseval): string;  
}

##### Index

### Properties[](#properties)

[animVal](#animval) [baseVal](#baseval)

## Properties[](#properties-1)

### `Readonly`animVal[](#animval)

animVal: string

The **`animVal`** read-only property of the SVGAnimatedString interface is a string representing the animated value of the reflected attribute.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString/animVal)

### baseVal[](#baseval)

baseVal: string

The **`baseVal`** property of the SVGAnimatedString interface gets or sets the base value of the given attribute.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString/baseVal)
