Add animation to pattern