Skip to content

[scroll-animations-1] ViewTimelineOptions dictionary should accept subject #7157

@flackr

Description

@flackr

The proposed rewrite in #6674 adds a ViewTimeline, which produces a time value based on an element's position within the scroller. The dictionary passed to the ViewTimeline constructor is defined as:

dictionary ViewTimelineOptions {
  Element source;
  ScrollDirection axis = "block";
};

Given that ViewTimeline extends ScrollTimeline I assume the source is the scrolling element whose scroll position is to be observed. I think the dictionary should have a subject member, to set the readonly subject attribute on the ViewTimeline.

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