improve handling of animation-delay