---
title: "init(to:by:mode:timing:isAdditive:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/fromtobyaction/init(to:by:mode:timing:isadditive:)"
---

# init(to:by:mode:timing:isAdditive:)

Creates a action to animate towards a final value. The starting value is determined by adding the inverse of by to the specified final value.

## Declaration

```swift
init(to: Value, by: Value, mode: FromToByAction<Value>.TransformMode = .default, timing: AnimationTimingFunction = .linear, isAdditive: Bool = false)
```

## Parameters

- `to`: Value set at the end of the animation.
- `by`: Value used to determine the starting value, relative to the end value.
- `mode`: Determines what space the transforms are relative to.
- `timing`: Controls the progress of the animation.
- `isAdditive`: Specifies whether you can additively blend the output from the action’s animation.

## Discussion

Discussion to - by → to
