-
Need tips on creating a certain animation
First of all, I apologise if this is not the right place to seek this kind of help.
What I would like to do is to morph from the left shape to the right shape:

First, I tried manipulating the anchor points, but the animation ended up looking very bad. Especially with converting the rounded corners to straight ones.
Then I tried adding a trim path. I trimmed it halfway through and then again, tried manipulating the anchor points but that also didn’t look right.Here is a state in the middle of the morphing animation ( how it’s supposed to look like):

I don’t want to trim the shape all the way down to the red point and then scale another path up. I would like it to actually transform into the other shape.
I would appreciate tips or any kind of help.
Thank you.