So I am just trying to give a basic idea of what I want to develop for a friend where the letter "M" (his logo) gets drawn out like its on a whiteboard.
I am trying to use Vivus to animate the SVG.
<!DOCTYPE html>
<html>
<head>
<title>MARKUR | MUSIC</title>
<link rel="stylesheet" type="text/css" href="index.css">
<script src='bower_components/jquery/dist/jquery.js'></script>
</head>
<body>
<div id="content">
<div id="container">
<!--<object type="image/svg+xml" data="img/markur.svg" id="markurLogo">Your browser does not support SVG</object>-->
</div>
</div>
<script src="bower_components/vivus/dist/vivus.js"></script>
<script>
var myVivus = new Vivus('container', {type: 'oneByOne', start: 'autostart', duration: 200, file: 'img/markur.svg'});
myVivus.play(2)
</script>
</body>
</html>
On the site I am able to get the SVG to display so I know I got something right however the error only appears when I try to call one of the functions.
On further inspection, I see that it's part of the Vivus code:
It says it is undefined so do I have to define the length somewhere in my code? I am not using a webserver for this at the moment but will it have something to do with this? Thank you for any form of help.