You should be able to use anything that was added to the Head HTML if you change the container type option from <div> to <iframe> in the Hype Animations sidebar item. Please see:
If for some reason you do need or want the animation to be embedded as a <div> then you'd need to follow @MaxZieb's advice.