Constructors

Properties

Constructors

Properties

STOP_METHODS: {
    FADE: "fade";
    FORWARD: "forward";
    IMMEDIATE: "immediate";
    ONETOTWO: "onetotwo";
    REVERSE: "reverse";
}

Stop Methods

Type declaration

  • FADE: "fade"

    Transitions the animating properties using the "ease" timing function to their reset values using the stopDuration.

    If the reset value is not set for a property, the starting value is used instead.

    If the stopDuration is not provided, the regular duration is used instead.

  • FORWARD: "forward"

    Animation continues forward to its normal finish state and then immediately sets the animating properties to their reset values.

    If the reset value is not set for a property, the starting value is used instead.

  • IMMEDIATE: "immediate"

    Animation immediately stops and sets the animating properties to their reset values.

    If the reset value is not set for a property, the starting value is used instead.

  • ONETOTWO: "onetotwo"

    A special stop method. It's action ranges are defined from progress 0.0 to 2.0, instead of 0.0 to 1.0. When stopping, the current animation is continued normally (up to progress 1), then the progress is continued up to value 2, and then the animating properties are immediately set to their reset values.

    If the reset value is not set for a property, the starting value is used instead.

  • REVERSE: "reverse"

    Reverses animation back to its starting point using the stopDuration.

    If the stopDuration is not provided, the regular duration is used instead.

    Note: If any of the animating properties have a reset value set the they will be set immediately to those values after the stop animation completes. If you do not want this, make sure not to set them.