-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration with drag and drop API? #234
Comments
You can make a View Transition respond to drag by pausing all animations and then controlling them by monitoring the dragDelta. See https://front-end.social/@bramus/111800601352108818 for an exploration of this. |
Apologies for the confusion, let me clarify with an example of the acute limitation in mind. Here is an example of visual jank resulting from a 'naive' use of view transitions with the drag and drop API. trimmed.mp4(Original: https://www.youtube.com/watch?v=uSRlG4hNH50) Attend to how, when the user makes a destination selection by releasing the content, the dragged content disappears, and the origin element of the drag then animates. For interfaces like that depicted, the ideal is for the drag preview image to animate to the resting location but the view transition API has no access to drag preview images. If it did, this could be very simple to implement. But in that absence a bespoke solution for drag previews is needed. Hope this clarifies. ✌️ |
Thanks for the video. Very clear now :) |
It'd be cherry to be able to include a drag-and-drop preview image in a view transition for a concise 'animate the dragged content to its final resting location'.
The text was updated successfully, but these errors were encountered: