Bugzilla – Bug 14659
'animation-iteration' event on last iteration
Last modified: 2012-04-10 23:54:08 UTC
I think we'll just update the wording in the spec so say "every iteration other than the last"?
*** Bug 14721 has been marked as a duplicate of this bug. ***
*** Bug 15241 has been marked as a duplicate of this bug. ***
That would match Gecko and Webkit but what is the rationale for that? We could overload animationend to be also the end of the last iteration but we have to be careful how we define what the last iteration is when the iteration count is fractional. Some timeline diagrams may help here.
# The ‘animationiteration’ event occurs at the end of each iteration
# of an animation for which animation-iteration-count is greater than
# one. This event does not occur for animations with an iteration count
# of one.
# The ‘animationiteration’ event occurs at the end of each animation
# iteration other than the last one. This event does not occur for
# animations with an iteration count of one.
Should it say 'with an iteration count of one or zero'?
Resolved using dbaron's proposal :
# The 'animationiteration' event occurs at the end of each
# iteration of an animation, except when an 'animationend' event
# would fire at the same time. This means that this event does
# not occur for animations with an iteration count of one or less.