W3C home > Mailing lists > Public > www-style@w3.org > February 2012

Re: [css3-animations] What does animation-fill-mode do when animation-iteration-count is zero?

From: Shane Stephens <shans@google.com>
Date: Thu, 9 Feb 2012 15:28:56 -0800
Message-ID: <CAGTfzwTg2i7Dmxrvy6Vp9KJVs5MgkMLYQFhkom6XhahBwXi_HA@mail.gmail.com>
To: Brad Kemper <brad.kemper@gmail.com>
Cc: Simon Fraser <smfr@me.com>, Brian Birtles <birtles@gmail.com>, www-style@w3.org
On Thu, Feb 9, 2012 at 9:48 AM, Brad Kemper <brad.kemper@gmail.com> wrote:
> On Feb 9, 2012, at 12:05 AM, Simon Fraser wrote:
>> This issue has been logged already.
>> <https://www.w3.org/Bugs/Public/show_bug.cgi?id=15841>
>> <http://lists.w3.org/Archives/Public/www-style/2012Feb/0077.html>
>> The options seem to be:
>> 1. Even if the animation ends half-way through a cycle, apply the style from the final keyframe for fill.
>> 2. Apply a fill style corresponding to the state of the animation when it ended, which may be half-way between keyframes.
>> I agree that (2) seems less surprising.
> When you put it that way, (2) sounds like a much better choice. Are those the only choices?

Bearing this in mind, an animation-fill-mode of both combined with an
animation-iteration-count of 0 should apply the style from the initial
keyframe both before and after the animation-offset - i.e. although
the value of some properties will be different to the case where there
is no animation, there won't be any transition or change related to
the offset and the values of all properties will be constant.


>> An alternative is to disallow fractional animation-interation-count.
> But it's pretty useful apparently, so that appears to be a non-starter.
Received on Thursday, 9 February 2012 23:29:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:11 UTC