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.
how to change the color of the vector when mouseover?
Hi,
I'm hoping you can help.
When I upload my Vector (only one colour) as an SVG, I'm not given the option to change the colour in the design panel. I would imagine that the solution dose not lie in Wix itself, but i wonder of you could give me any tips on how to save it in a way that WIX recognises the the svg is only one colour.
Thanks
@Yoav (Wix) off topic but can we please get the chat API? This is like super important and would really help my project. WIX Chat API.
Hi,
Another question - what is the https:// path?
Need it for Google Dynamic Map.
The inside path won't be recognized, must have the outside path.
Thanks:)
Hi,
Seemd like it's impossible to add a vector to a collection as an image.
What is the solution for that?
Thanks
Will we be able to animate our vector images soon ?
WOW