Skip to content

AnimationExperimental.startAnimation reset some property values to defaults after animation ends. #796

@istarkov

Description

@istarkov

AnimationExperimental.startAnimation with properties “position” and “opacity" does not reset position and opacity to defaults after animation ends.
And this works as expected

    AnimationExperimental.startAnimation({
      node: this.refs['internal'],
      duration: 1000,
      easing: 'easeInQuad',
      property: 'position',
      toValue: {x: 200, y:200},
    });

element position after animation is {x:200,y:200}


But scaleXY and rotation get default values (rotation=0, scale=[1,1]) after animation end
this work as not expected

    AnimationExperimental.startAnimation({
      node: this.refs['internal'],
      duration: 1000,
      easing: 'easeInQuad',
      property: 'scaleXY',
      toValue: [2, 2],
    });

scale instantly after animation end gets scale = [1,1]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions