animation lib - fix safari/iOS bug

was causing safari to die.