So, I've got what looks to me like a pretty simple setup. My end goal is to embed a lottie animation into my website (webflow). In Atom everything works fine.
HTML:
<body>
<div id="lottie"></div>
<script src="lottie.js"></script>
<script src="index_1.js"></script>
</body>
index_1.js:
var animation = bodymovin.loadAnimation({
container: document.getElementById('lottie'),
renderer: 'svg',
autoplay: true,
path: 'process_1.json'
})
And the animation plays in my HTML preview! Yay! Webflow, however doesn't have file hosting, so I decided to throw my "lottie.js" and "index_1.js" scripts and "process_1.json" on Amazon s3 and link them up using the file's public urls, but nothing appears on my website!
Is Amazon s3 not good for this sort of thing? Perhaps the "path" parameter in my index_1.js doesn't accept urls?
var animation = bodymovin.loadAnimation({
container: document.getElementById('lottie'),
renderer: 'svg',
autoplay: true,
path: 'https://audioplayerskin.s3.amazonaws.com/Json+Files/Process_1.json'
})
What could be the problem here?
Thanks! :)