Animation configuration

interface AnimationConfig {
    delay?: number;
    duration: number;
    easing: EasingFunction;
    from: number;
    onComplete?: (() => void);
    onUpdate?: ((value) => void);
    property: string;
    target: AnimationTarget;
    to: number;
}

Properties

delay?: number
duration: number
from: number
onComplete?: (() => void)

Type declaration

    • (): void
    • Returns void

onUpdate?: ((value) => void)

Type declaration

    • (value): void
    • Parameters

      • value: number

      Returns void

property: string
to: number