Closed
Description
Parts of the ScrollTimeline and ViewTimeline interfaces need to represent values in “time”. In Web Animations 1, this was a raw number representing milliseconds. But for scroll animations, we're operating in a spatial dimension, not the time dimension. What should these “time” values represent?
So far options considered have been:
- progress from the starting scroll position to the ending scroll position
- additional question in this case is, what represents 100%: 100 or 1.0?
- pixels from the starting scroll position
Web Animations 2 additions to the API allow for values with units, but for compatibility with Web Animations 1 we still need an answer here.