Skip to content

Instantly share code, notes, and snippets.

@DirkyJerky
Created February 25, 2015 23:36
Show Gist options
  • Save DirkyJerky/212ee23f6a078e848b77 to your computer and use it in GitHub Desktop.
Save DirkyJerky/212ee23f6a078e848b77 to your computer and use it in GitHub Desktop.
var fileref = document.createElement('script');
fileref.setAttribute("type","text/javascript");
fileref.setAttribute("src", "//cdn.jsdelivr.net/vivus/0.1.2/vivus.min.js");
document.getElementsByTagName("head")[0].appendChild(fileref);
function animSVG(svgid) {
new Vivus(svgid, {type: 'oneByOne', start: 'autostart', duration: 200});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment