updating animations and styles