Creates a signal whose value morphs from the old value to the new over a specified duration.
Param: source
Either a value, signal, observable, or function that can be used in a computed function.
Param: options
Options for the signal. If a number, number[] or Record<string | number symbol, number>
is passed then this is not required. Otherwise an interpolator is required to translate the change of the value.
Creates a signal whose value morphs from the old value to the new over a specified duration.
Param: source
Either a value, signal, observable, or function that can be used in a computed function.
Param: options
Options for the signal. If a number, number[] or Record<string | number symbol, number> is passed then this is not required. Otherwise an interpolator is required to translate the change of the value.
Example