Css animation keep between tabs

Hi,

I have some infinite bar animation on tab A

When I route to a different tab B and come back to tab A, I want the animation to be running in background consistently.

What would be my choice to do that?