---
title: "VectorizedInfiniteRepeatableSpec"
description: "This animation takes another [VectorizedDurationBasedAnimationSpec] and plays it __infinite__
times.

initialStartOffset can be used to either delay the start of the animation or to fast forward the
animation to a given play time. This start offset will **not** be repeated, whereas the delay in
the [animation] (if any) will be repeated. By default, the amount of offset is 0."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
public class VectorizedInfiniteRepeatableSpec<V : AnimationVector>(
    private val animation: VectorizedDurationBasedAnimationSpec<V>,
    private val repeatMode: RepeatMode = RepeatMode.Restart,
    initialStartOffset: StartOffset = StartOffset(0),
) : VectorizedAnimationSpec<V>
```


This animation takes another `VectorizedDurationBasedAnimationSpec` and plays it __infinite__
times.

initialStartOffset can be used to either delay the start of the animation or to fast forward the
animation to a given play time. This start offset will **not** be repeated, whereas the delay in
the `animation` (if any) will be repeated. By default, the amount of offset is 0.

#### Parameters

| | |
| --- | --- |
| animation | the `VectorizedAnimationSpec` describing each repetition iteration. |
| repeatMode | whether animation should repeat by starting from the beginning (i.e. `RepeatMode.Restart`) or from the end (i.e. `RepeatMode.Reverse`) |
| initialStartOffset | offsets the start of the animation |



## Secondary Constructors

```kotlin
public constructor(
    animation: VectorizedDurationBasedAnimationSpec<V>,
    repeatMode: RepeatMode = RepeatMode.Restart,
) : this(animation, repeatMode, StartOffset(0))
```


