-
Notifications
You must be signed in to change notification settings - Fork 96
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
OnDrag hide or change opacity to 0 in original element like trello does. #53
Comments
Use a custom style for this:
and add to you site.css e.g.:
|
@Postlagerkarte I tryed this initially, but the style from the in-transit apply to both 'visual elements', the div that stays on original place and the one dragged. see this post as a reference: https://stackoverflow.com/a/62790549/1546943 The key point is to listening to the drag event, instead of the dragstart. PS; im asking for this cause for the user, sounds more 'natural' to see the original element disapear while dragging. |
@michelkommers thank you for contributing! I just tried with the custom style from above and it looks like the original element is getting the zero opacity while the dragged element is not. You can see it more clearly if you use .plk-dd-in-transit { .plk-dd-in-transit > div { I agree that it looks more 'natural' to see the original element disapear while dragging. |
@Postlagerkarte thanks for the reply. Here is applying to both, i will look in to my code, maybe something is conflicting, dont no. |
No description provided.
The text was updated successfully, but these errors were encountered: