Closed ASTN1 closed 8 years ago
Draggabilly adds is-dragging
class. You can use CSS
.is-dragging {
z-index: 2;
}
Thank you for your answer, but this class disappear as soon as you drop the div, isn't?
Try this code:
$draggable.on( 'dragEnd', function( event ) {
$( event.currentTarget ).css({ zIndex: 9999 );
});
Hi,
I would like to set a CSS property (z-index: 9999) on each element that has been dragged.
I thought about using the dragEnd event, but 'pointer' isn't an object...
As far as I know there isn't a class for dragged elements...
Any idea?