Do not animate icon when page is not visible. Fixes #18.
Merge branch 'pr/21'