---
title: speed
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/sampledanimation/speed
---

# speed

A factor that changes the animation’s rate of playback.

## Declaration

```swift
var speed: Float { get set }
```

## Discussion

Discussion The default value is 1.0, which doesn’t alter the animation’s duration. A value of 2.0 indicates that the duration is half the normal rate. A value of 0.5 indicates that the duration is twice the normal rate. Negative values play the animation in reverse. This property doesn’t affect the animation’s delay.

## See Also

### Timing the animation

- [frameInterval](realitykit/sampledanimation/frameinterval.md)
- [start](realitykit/sampledanimation/start.md)
- [end](realitykit/sampledanimation/end.md)
- [delay](realitykit/sampledanimation/delay.md)
- [duration](realitykit/sampledanimation/duration.md)
- [offset](realitykit/sampledanimation/offset.md)
- [trimDuration](realitykit/sampledanimation/trimduration.md)
- [trimStart](realitykit/sampledanimation/trimstart.md)
- [trimEnd](realitykit/sampledanimation/trimend.md)
