How to change SVG color in a collection list (dynamically)?

Hey, does anyone know how to change the svg color dynamically?

I am doing this project where I have to change the svg color on hover. I got it to work statically, by changing the fill=“currentColor”, but when I try to add an embed on a collection list to pull the svg data from a plain text field it does not work, Wefblow does not recognise it.

I have checked many posts, but sadly I did not find a solution.

Thanks for taking the time to read this, much appreciated!

1 Like