Re: [csswg-drafts] [css-view-transitions-2] MPA: Reacting to the old/new page type (#8683)

Would be nice if all could be done using only CSS, so evidently I am in favor of any approach that would afford this.

Proposals 2 and 3 look nice, but there’s still something missing: when doing transitions between two pages of the same type, you might need some extra info to determine the “direction of animation”.

Say you’re looking at a list of 100 items, paginated per 10 items, and  you are currently on page 5. When going to page 4 you’d want all items (old and new) to slide to the right, whereas when going to page 6 you’d want to slide them in the opposite direction. Having just the page-type or url pattern available doesn’t cut it, as you’re doing transitions between the same type of pages.

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


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

Received on Thursday, 25 May 2023 09:47:59 UTC