Building performant expand & collapse animations
Use scale transforms when animating clips. You can prevent the children from being stretched and skewed during the animation by counter-scaling them.
[…]
In this post we’re going to look over what’s involved if you want performant clip animations. If you want to see a demo, check out the Sample UI Elements GitHub repo.