[csswg-drafts] New values for old properties (#4342)

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

== New values for old properties  ==
If I’m understanding it correctly, `animation-duration` would become much less meaningful most of the time when used with scroll animations. But what if it accepted lengths and percentages? 100% would mean it ended at the end of the scroll. 50em would mean it ended when it had scrolled 50ems past where it started. Negative values would measure from the end of the container instead of the beginning. 

`animation-delay` would also be a length or percentage that determined when the animation started. 0% would mean it starts as soon as scrolling began at the start edge. 100px would mean it starts when the 100px mark scrolls past the start edge. 

With these, you would no longer need startScrollOffset or endScrollOffset as values of animation-timeline. 

`animation-direction` loses meaning if the animation is based on the scroll position. So this could accept block, inline, horizontal, and vertical values. Then you don’t need ScrollDirection as a separate value in `scroll-animation`. 

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

Received on Thursday, 19 September 2019 05:41:51 UTC