How can I fix a color swatch issue with jQuery and JavaScript?

how to create "i have created one hiding box in for loop and mouse hover show box and product color swatches hover to show box and box background color is also same in product color swatches and box , i have done with this but box background color is also appere as first color swatches color " so how to fix this issue using jquery and javascript

@Nayanpos

Kindly Share your Store URL,

So that I can help you.