javascript side screen transition animation