[csswg-drafts] [css-view-transitions-2] (feature) access view-transition snapshot outside of CSS (#10568)

noamr has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-view-transitions-2] (feature) access view-transition snapshot outside of CSS ==
For view transitions, right now we take snapshots for the old & new state and they get rendered in the `::view-transition-{old|new}` pseudo elements as the contents. But what if we could access those images elsewhere? e.g. paint them into 2D/WebGL canvas or display them in an image element? 
This can open a world of interesting animations.

A way to express this can be something like a URL (e.g. `view-transition:name#old`) or an imperative API
`viewTransition.getSnapshotImageData(name, "old")` or `viewTransition.createSnapshotURL(name, "old")`

(* Not planning on implementing anything like this soon but wanted the idea documented)

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10568 using your GitHub account


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

Received on Friday, 12 July 2024 20:59:06 UTC