@tempots/dom
animateSignals() function
Animates signals based on the provided options.
Signature:
animateSignals: (initialValue: T, fn: () => T, dependencies: Array<AnySignal>, options?: AnimateSignalsOptions) => Prop
Parameters
Parameter |
Type |
Description |
---|---|---|
initialValue |
T |
The initial value of the animation. |
fn |
() => T |
A function that returns the end value of the animation. |
dependencies |
Array<AnySignal> |
An array of signals that the animation depends on. |
options |
(Optional) Optional options for the animation. |
Returns: Prop
- The animated value as Prop