Added if statement so width of container is not set if animating from top or bottom
Sorted issue with no keyboard buttons working on browser except for left and right arrow|