Skip to content

[scroll-animations-1] Support setting start and end time on scroll timeline. #7296

@flackr

Description

@flackr

In the rewritten spec, AFAICT scroll timeline always animates over the entire scroll range. I think it will be relatively common for developers to want to target a specific length range. While you could technically do this by carefully constructing an element I think we should support simple cases such as animating from 0px to 200px scroll offset.

With this change, I think we could also move the read-only startTime and endTime from ViewTimeline where they are currently defined to the base ScrollTimeline interface.

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