First, Last, Invert, Play.
Paul Lewis demonstrates a performant way to approach animations. It’s the opposite of how you normally think of them. In this approach, the state you first see elements in is the the result of manipulation from the elements final state. Then you remove all the transforms (et al.) to trigger the animation.