Animates according to page width