Re: [csswg-drafts] [scroll-animations] Support series of scroll offsets (#4912)

I'm confused, isn't the map we're trying to build scroll offset to animation offset, not the reverse?

My expectation would be that if we include animation offsets [100, 300, 200, 400] would produce {100 => 0, 250 => 0.22, 250 => 0.78, 400 => 1} where the 0.22 and 0.78 are the relative proportion of those interpolations that would be covered (e.g. 66% of the 33% animation progress achieved at offset 250).

If we strictly use the midpoint of the overlapping animation offsets we might in fact change the speed of the effect, consider:
[100, 300, 100, 400] 
The midpoint is 150 with value 0.5. This means that at 151, we will be just over 51%, rather than the expected position of being well into the [100, 400] interpolation between keyframes 3 and 4.

-- 
GitHub Notification of comment by flackr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4912#issuecomment-651820499 using your GitHub account

Received on Tuesday, 30 June 2020 14:16:25 UTC