---
title: AnimationRepeatMode.cumulative
framework: realitykit
role: symbol
role_heading: Case
path: realitykit/animationrepeatmode/cumulative
---

# AnimationRepeatMode.cumulative

A mode that repeats indefinitely and begins each repetition by setting the animated property to the ending value of the previous repetition.

## Declaration

```swift
case cumulative
```

## Discussion

Discussion A FromToByAnimation with a fromValue of 1.0 and an toValue of 2.0 and repeatMode set to this property repeats as, 1.0, 2.0, 3.0, 4.0, 5.0, and so on.

## See Also

### Choosing a repeat mode

- [AnimationRepeatMode.repeat](realitykit/animationrepeatmode/repeat.md)
- [AnimationRepeatMode.autoReverse](realitykit/animationrepeatmode/autoreverse.md)
- [AnimationRepeatMode.none](realitykit/animationrepeatmode/none.md)
