Thank you ZachSaucier for your answer, you are the one who always answers questions:)
I think you misunderstood me.
The problem is that after clicking the button again(namely, when it turns from a cross into two lines), they are in the middle of each other in the position:
.to('.line02',0.4,{x: 9, stroke:'#000000'},0)
.to('.line01',0.4,{x: -9, stroke:'#000000'},0)
But I need them to return to the position:
.to('.line02',0.4,{x: 0, stroke:'#000000'},0)
.to('.line01',0.4,{x: 0, stroke:'#000000'},0)
I do not know how to do this, I will be happy to wait for your response