Swapy
v1.0.3
  1. Styling
  2. Style Highlighted Slot

Swapy adds the data attribute data-swapy-highlighted to the slot element that the user is currently hovering over.

You can use that to style the slot element in CSS.

.slot[data-swapy-highlighted] {
  background: rgba(255, 255, 255, 0.2);
}