add styling and change animation direction