Skip to content

[scroll-animations-1] Percentages vs Pixels for Scroll Timeline Values #7045

Closed
@fantasai

Description

@fantasai

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions