w3c / csswg-drafts

CSS Working Group Editor Drafts
https://drafts.csswg.org/
Other
4.52k stars 672 forks source link

[css-view-transitions] Integration with drag-and-drop API's preview image? #11221

Open IanBellomy opened 1 week ago

IanBellomy commented 1 week ago

It'd be helpful to be able to include a drag-and-drop preview image in a view transition.

This could make it very easy to achieve common but (as best I know) otherwise impossible drop-response idioms like animating dropped content to a final resting location and appearance, animating the content to a 'trash can' as a default response to being dropped outside a valid drop target, or controlling the way dragged content moves back to its original location if the drag and drop operation is canceled.