Re: [web-animations] unclear iteration start behaviour for animation sequence

On 2014/12/19 15:14, "Сергей Грехов" wrote:
>      player.ready.then(function() {
>          // Total duration of the sequence is 1000. Because of iteration
>          // start animation should begin from moment that corresponds
>          // time 100. animation1 is finished at this time.
>          // What should be animation1 behaviour?
>          // Should animation1 be at the end time (because of fill mode
>          // forwards)?

Yes.

> Specification should more clearly define this behavoiur (in terms of
> scaled active time I think)

At time 0ms for animationSequence,

   scaled active time
     = active time (0) x playback rate(1) + start offset(0.1 x 1000)
     = 100

   transformed time = iteration time = 100 % 1000 = 100

Then animation1 has:

   inherited time = 100

   local time = 100

   phase = after

   active time = active duration = 10 (since fill=forwards)

Perhaps the approach of calculating from the root down is not clear? Or 
is there something else that is missing?

Best regards,

Brian

Received on Monday, 22 December 2014 08:18:33 UTC