add animation direction