Options for tweenSignal.

interface TweenSignalOptions<T> {
    debugName?: string;
    delay?: number;
    duration?: number;
    easing?: EasingFn;
    injector?: Injector;
    interpolator: InterpolateFactoryFn<T>;
    raf?: AnimationFrameFn;
}

Type Parameters

  • T

Hierarchy (view full)

  • TweenOptions<T>
  • Pick<CreateSignalOptions<T>, "debugName">
    • TweenSignalOptions

Properties

debugName?: string

A debug name for the signal. Used in Angular DevTools to identify the signal.

delay?: number

A delay before starting.

duration?: number

If not provided then a default of 400 is used.

easing?: EasingFn

An easing function that distorts progress.

injector?: Injector

This is only used if a signal is created from an observable.

interpolator: InterpolateFactoryFn<T>

The interpolator is required unless numeric values are used.

A function to get the next animation frame. Defaults to window.requestAnimationFrame in browser context.