Here's a sample of how you can add the animation
https://css-test-components.wstd.io/ (this is a playground site I've set for myself, so it changes often).
I don't know why the animation is janky on my version, you can copy the instructions there and debug.