Added API to abort animations of a given type.