Added some animation bug fixes.
Fixed animations for small screens (smaller than 400px)
Fixed weird window resizing error.
Merge pull request #56 from Jedwondle/master

Fixed some animation bugs that were breaking small screens and automatic flyout changes.