I am using Adobe Illustrator and Adobe After Effects. I want to animate an SVG triangle. I want the Hypotenuse to "swing out" from the bottom leg (go from 0 deg to 45deg). I can do this by 1), making each triangle segment its own layer, 2) setting an anchor point at the bottom left vertex (see the graph), and then 3), going into after effects and change the rotation of the hypotenuse line segment. The problem is that the line segments do not join properly. As you can see the vertices are not filled in. I can fix this by joining the the segments, but then all the segments become one layer, and I cannot animate the hypotenuse swinging.
My question is: is there a way to animate the hypotenuse segment swinging out, while making sure the vertices are joined properly? Here is a photo for reference.