Do not animate icon when page is not visible. Fixes #18.