Change Vector colour on mouse in and out

I can’t seem to find an answer anywhere; is there a way of changing the colour of a vector on mouse in and out events.

I have tried putting a copy of the vector in a different colour over the top and having it show/hide, however this appears ‘glitchy’ if the mouse moves.

Has anyone achieved this? Any help would be appreciated

Hi there :wave:t2: This can be easily achieved without any code , by using a Wix icon button, where you can change the design on hover


I recommend choosing “Text & Icon Button” and selecting the “Icon Only” option, which allows you to easily change the svg color. The “Icon Button” option seems to be image-based, but either will work.

Good luck!