Skip to content
This repository was archived by the owner on Feb 19, 2021. It is now read-only.
CJ Gammon edited this page Aug 3, 2017 · 10 revisions

Frequently Asked Questions

  • The HTML file is blank
    Due to browser security settings, and the fact that we are loading external javascript files, these files will not load on the local file system. It needs to be hosted on a server in order to render correctly in a browser.

  • How do I append the SVG Element for an exported animation to a specific DOM node?
    This can be achieved by accessing the node of the Snap.svg surface, through the s attribute of the SVGAnim object.

var container = document.getElementById("myelementid");
var comp = new SVGAnim(json, width,height,fps);  
container.appendChild(comp.s.node); 
  • Where is the .svg file? How do I send the animation to someone?
    Snap.svg Animator uses SVG as the rendering engine (drawing), it does not generate a .svg file. Because of this it relies on javascript to dynamically draw SVG content at runtime. In order to send the animation to someone you'll need to send all required assets including the HTML and javascript generated when publishing.

Clone this wiki locally