Change animate code to > 1.2