Added the mobile horizontal and vertical animation with css3