wip - changing animator to use transitionend event