Cursor animation fix

Has to be in same instance as DOM.