Small adjustment
Only animate the pace when shown

For some reason keeping the animation running when not visible uses a
whole CPU in Chrome. I don't really like this solution, since it
sometimes results in it jumping up in size just before hiding, but it's
better than maxing out cpu.

We need a better pacer ;)