Re: [csswg-drafts] [css-shared-element-transitions-1] Define "active animation" used to signal end of transition (#7785)

Thanks @khushalsagar for clarifying! I missed that.

> I'm not sure how gesture based transitions can be built using scroll timeline yet. The swipe gesture imitated by the user would be a trigger to initiate the transition itself. So the developer would have to issue document.createTransition in response to the gesture starting. Input then gets discarded for the capture and update phase.

Exactly, that's why current spec feels very awkward in conjunction with a pointer/scroll-linked timeline.

If I really had to be creative, I guess maybe something like:
User reached end of scrolling container (or list with a mandatory scroll-snap &c.) and at that point the author initiates a transition, which is later only progressed if the user continues scrolling on same direction.

> Once the animations are ready to start you somehow set up the container pseudo-element (which has the old and new root images) as a scroll container to provide a scroll-timeline for animating the old and new images..?

Interesting! But then, what would the duration of the timeline be? Would the author need to define some sort of a "virtual" length?

> Because this is still unclear I figured it's better to exclude scroll-timeline.

Yep, there are still a lot of open questions here, but then I think it's also worth defining explicitly what happens if the author did set `animation-timeline` to anything other than `auto`, in a way that's also future compat.

> `paused`: Unclear whether this should be considered `active`.

This may still be useful for allowing authors to still be able to do custom stuff, and perhaps patterns can emerge there. 

-- 
GitHub Notification of comment by ydaniv
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7785#issuecomment-1261868982 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 29 September 2022 07:19:36 UTC