We are excited to announce that a new VectorImage element type has been added to the Wix Code API. Vector images are digital illustrations based on geometric shapes. A vector image is a great choice when you need an image that retains its high quality when resized. In addition to standard page element functionality, the Wix Code API allows you to change the source of vector images that you've added to a page.
How it works
Select the vector image you want to change using the $w selector function.
Access the element's .src property.
Get the current source or set the source value to any of the vector images found in the Media Manager.
Example
$w("#myElement").src = "wix:vector://v1/1a1e41bd6dd04ee68bf9ebb24c9c7250.svg/media-57-08";
Learn more
To learn more, see VectorImage.src in the API reference.
Anybody noticed that when uploading an SVG file and assigning a URL to it - the color changes?
Is there a solution to that? We cannot change the color.