j-toscani / doppelkopf

German card game in the Browser
0 stars 0 forks source link

Improve display of card being dragged #19

Closed j-toscani closed 9 months ago

j-toscani commented 9 months ago

Is your feature request related to a problem? Please describe. When I want to play a card it follows the mouse. However, the element that follows the mouse is a snapshot of the portion of the screen where the card initially was. This results in a small stack of cards being dragged and looks horrible

Describe the solution you'd like I want the element being dragged only to display the card.

Describe alternatives you've considered Change opacity or apply a transform to the card, so that it changes its stacking context shortly before dragging. This way, the snapshot will be only the card.