Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML5 Drag and Drop - No transparency?

When I drag and drop an element on my page the element becomes "ghosted". Basically it gets some transparency value.

Is there some way to make it opacity: 1;?

like image 950
Johan Lindskogen Avatar asked Mar 15 '12 00:03

Johan Lindskogen


1 Answers

It looks like it can't be done. The dragged element is put into container that has it's own, lower than 1, opacity. This means that while you can lower the opacity of the dragged element you can't get it higher than the opacity of the encapsulating element.

It might be possible to override default browser settings for such element, but since nothing is added to DOM during the drag it would be very tricky at best.

like image 117
c2h5oh Avatar answered Oct 14 '22 01:10

c2h5oh