I am creating a simple animation with vivus.js, however it is not working. 1st I create the svg and give an id. Then I create a function:
function vivus(){
console.log("work")
new Vivus('Layer_1', {type : "async/ oneByOne/delayed"});
}
I am simply passing in the element id, and then the object with key value pairs. This should work but I am getting this error in the console:
Uncaught Error: Vivus [constructor]: "element" parameter is not related to an existing ID