Cherrypicked status bar animation changes from unmerged pull request. https://github.com/gotosleep/JASidePanels/pull/173