Here's that directional View Transitions demo we talked about over lunch, @twnsnd.com chrome.dev/view-transit... The toolkit automatically injects from-<name> and to-<name> View Transition Types based on navigation origin and destination. The routes are defined in a routemap.
Post
chrome.devNavigation Types Demo - View Transitions Toolkit
We, Chrome, are currently working on a way to do route matching in purely CSS as well: drafts.csswg.org/css-navigati... (draft spec). This addition would remove the need for any script to achieve directional View Transitions 🥳
drafts.csswg.orgCSS Route Matching
1 repost9 likes
🙏🙏🙏 I remember discussing this with @nomster.bsky.social but didn’t clock that it overlapped with VTs.