create Animation in a callback

ensures that the div element the Animation wants to attach to exists when the code executes.