animation delays starting after refactor