animating gates for mobile