Corrected Animation of Sidebar according to viewport