Change animation in order to reduce initial height of page causing unnecessary scroll bar