I am using bodyworks and lottie to load a custom SVG animation, and for some reason it is throwing a GET error. The path to the file is correct as it loads it fine when i copy and paste it into the browser so I am unsure what is going wrong?
var animation = bodymovin.loadAnimation({
container: document.getElementById("animationContainer"), // the dom element that will contain the animation
renderer: 'svg',
loop: true,
autoplay: true,
path: 'data.json' // the path to the animation json
});
The file was originally in a nested folder but i thought that may be a cause of some of the errors so I moved it, however it is still unable to load it. Any help would be appreciated
> bodymovin.js:1300 GET file:///G:/My%20Drive/YetiTech/YetiTechNewSite/YetiTech/The%20Fresh%20Site%20of%20Bel%20Air/data.jsonnet::ERR_FAILED