Drag and drop in HTML5 uses the following cursor shape when an element is dragged over the drop zone:
Would it be possible to set cursor to above shape without using drag and drop?
Drag and drop in HTML5 uses the following cursor shape when an element is dragged over the drop zone:
Would it be possible to set cursor to above shape without using drag and drop?
According to MDN:
By default, the browser supplies an image that appears beside the pointer during a drag operation. However, an application may define a custom image with the setDragImage() method, as shown in the following example.
https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API#define_the_drag_image
So in theory, you can do the same:
html, body {
height: 100%;
}
body {
cursor: url("https://i.stack.imgur.com/zaRox.png"), default;
}
... but obviously this isn't a very optimal approach. Unless it's urgent, wait for the cursor to hopefully be added natively.