stop wave animation when tab loses focus