refactored trigger animation to one line