Change mobile sliding animation to use css