W3C home > Mailing lists > Public > www-style@w3.org > August 2014

[css-animations] Interaction of negative animation-delay and animation-iteration-count

From: Sylvain Galineau <galineau@adobe.com>
Date: Thu, 28 Aug 2014 16:27:49 +0000
To: "<www-style@w3.org>" <www-style@w3.org>
Message-ID: <27BB7C29-1DE6-4729-823B-43528225B853@adobe.com>
I would like to resolve bug 14807 [1] on the interactions of animation-delay and animation-iteration-count. Specifically, clarify what happens when: 

a) animation-delay is (-1 x animation-duration) e.g. 
	
	animation-duration: 5s;
	animation-delay: -5s;

b) when the animation has 2+ iterations and a negative animation delay covers more than one iteration e.g. 

	animation-duration:2s; 
	animation-iteration-count:2; 
	animation-delay:-3s;


For a), I believe it is equivalent to a zero duration i.e. the animation completes immediately.

For b) I think we should clarify that a negative animation-delay resolves against the timeline produced by animation-duration x animation-iteration-count. (We should have a name for this, incidentally). In other words, it can 'swallow' iterations i.e. in the example above the UA would only run the last second of iteration #2.

Comments? Objections? Issues?

[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=14807
Received on Thursday, 28 August 2014 16:28:21 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:38 UTC