How can i animate polygon collider 2d shape?

I need to animate collider shape to fit sprite in each frame of an animation.

I tried using capsule or box collider but they aren’t good enough.
I don’t see possibility of adding collider points as property in animator.

Just delete the collider before the sprite reaches the next frame and re-add it immediately after that frame is instantiated. Since polygon colliders auto-mesh the sprite, you don’t have to manually update points.

https://answers.unity.com/questions/1305847/refreshing-the-polygon-collider-2d-upon-sprite-cha-1.html?childToView=1655933#answer-1655933