use translate y rather than margin top to animate