Adds core animation code