Interface ElementAnimateConfig

interface ElementAnimateConfig {
    aborted?: Function;
    additive?: boolean;
    delay?: number;
    done?: Function;
    duration?: number;
    during?: ((percent) => void);
    easing?: AnimationEasing;
    force?: boolean;
    scope?: string;
    setToFinal?: boolean;
}

Hierarchy (view full)

Properties

aborted?: Function
additive?: boolean

If use additive animation.

delay?: number
done?: Function
duration?: number
during?: ((percent) => void)

Type declaration

    • (percent): void
    • Parameters

      • percent: number

      Returns void

easing?: AnimationEasing
force?: boolean

If force animate Prevent stop animation and callback immediently when target values are the same as current values.

scope?: string
setToFinal?: boolean

If set to final state before animation started. It can be useful if something you want to calcuate depends on the final state of element. Like bounding rect for text layouting.

Only available in animateTo