Beginner, unable to use
See original GitHub issueVivus version: 0.4.6
Browser: Firefox 88 - 64-bit on Ubuntu 20.04
Steps to reproduce it:
I was expecting the following HTML + SVG files I placed on the desktop will give me an animated display when opened with a browser. The SVGs work nicely with Vivus Instant. I am trying to animate them locally. Please see the HTML code I am using
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Vivus Test</title>
</head>
<body>
<h1>My Sample text</h1>
<div id="my-div"></div>
<script>
new Vivus('my-div', { duration: 200, file: '/circ.svg' }, myCallback);
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vivus/0.4.6/vivus.js"></script>
</body>
</html>
It would be nice know what else should be in this file for the SVG animation ( attached as zip ). Thanks
[note] Please have a minimum of politeness. There’s unfortunately only me as contributor/maintainor which help on my free time, I’m not the Amazon customer service or your Mom. I don’t ask to send me flowers and tell me how amazing Vivus is (that won’t make me help you quicker). But please try to do as much as you can before opening an issue: check that no closed issue mention a similar problem, that your script is executed correctly (conflicts, race conditions…)… Thanks 😃 [/note]
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (3 by maintainers)
Top GitHub Comments
Thanks. I wanted to create animated SVGs locally. It is working fine without XAMPP or VSCode Live Server. Have a nice time. 😃
By having Vivus Instant locally, what do you mean? Having the code working locally on your machine so you can generate animated SVG offline? If so, clone vivus-instant (or download the zip) and open
index.html
in it 😃