How to create a SVG from code?

Can someone help me with a simple example on how to create and position in the webpage a SVG?

See the collection of SVG examples . You will find all sorts of different SVG techniques in these examples.

hey, I just found them after I posted. Trying to figure out now how the animation works. If you have time, do you think you can help me with a simple example? How could I make a simple shape, let’s say a rectangle, to change width fluently, as an animation?

@danieltanasec The examples demonstrate such manipulations.

SVG itself is not part of the Wix Code product. For more information, there’s a wealth of information online. Two good sites are:

Have fun!