Is there any way to animate the "closeness" of the drawing without changing or adding another layer?

So, Let’s say drawing layer A is at the bottom and behind drawing layer B. And you want to animate this drawing from drawing layer A going forward, but without changing the position of the layer. drawing layer A on the bottom and drawing layer B on the top, but the drawing from A is on top

Is there any way to do this without having to add other layers? Is there a way to use nodes in this?