Rewritten the element animation/transition end handler to no longer use CSS classes as detection hooks - reduced code footprint by quite a bit with zero loss of function