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

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.

Cheers,
    -Shane

>
>> 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