Switched to animation-delay in CSS for animations