Menu icon Foundation
SVG image color

Hello,

I use a number of svg images in my web site, and I wondered if there was a straightforward way to change their colour dynamically, like links. I only use .svg files. I haven't looked at any code.

Thank you

svgcolorstyle

Hello,

I use a number of svg images in my web site, and I wondered if there was a straightforward way to change their colour dynamically, like links. I only use .svg files. I haven't looked at any code.

Thank you

James Stone over 5 years ago

You could try loading them via a library like snap.svg and then make modifications to the specific elements you want to change.

coralie diatkine over 5 years ago

Thanks. I never heard of that. I'll look for it.