[csswg-drafts] [css-animations] Support iterationCount field in animationIteration event (#3620)

hunboy has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-animations] Support iterationCount field in animationIteration event ==
Currently the iterationCount variable (field) is missing in the animationiteration event. In some cases - especially when the iteration-count is significant, we might know the exact value: which iteration happens currently.

Simple sample here: https://jsfiddle.net/utasir/4wn52fdo/
In this testcase I had to use a "global" variable to count the iteration, but this sounds as a hack.

Here are the fields, what we have currently in the event object:
![iteration](https://user-images.githubusercontent.com/547294/52401968-4ec47d00-2ac3-11e9-84f7-9414460111cd.png)

So, my suggestion is: adding a new field which shows the current iteration number.


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3620 using your GitHub account

Received on Thursday, 7 February 2019 09:35:53 UTC