Animated SVG images in Rise?

Dec 22, 2020

I know you can import svg images into Rise without any problem, but when I import an animated svg image it doesn't seem to play at all. Is there anyway make that work? Possibly some manner of building the svg animation to play in Rise maybe?

10 Replies
Lea Agato

Hi Ian, you can try editing your SVG image in a text editor, such as Notepad, and add width and height attributes to the opening <svg> tag. Then, save and close the file and reimport it into Rise 360.  This is the recommended solution for SVG images that won't zoom in Rise, and it might be worth a try for animated SVG images.  

Math Notermans

I noticed that adding an animated SVG to Rise360 the animation plays when adding it. So in the block editor you see it animating...but then in the preview it doesnot animate anymore...

Testing some more...

After some more tests it appears that adding an animated SVG ( i made them in SVGator ) will work, but only on load. Thats mainly inherent of my SVGs, Gonna try a looping one...and one with see if that works.

Math Notermans

So i tested a bit more and these are the results...

SVG with animation can be generated in 2 ways. With Javascript or with CSS. The Javascript based SVG animations donot work in Rise360. The CSS based animations do work in Rise360, however creating SVG with CSS has some major lacking features. First of all you cannot use transform related animation, you have to make sure all your animation is point and path focused. Thats not good, allthough if you know it, you can take that into account when creating your animation.

However the worst part of CSS based SVG animation is not all browsers support it. It works fine on the latest Chrome and Edge, but it doesnot on Firefox and probably Safari and Macs neither.

So Articulate really should add this as a feature... Make sure Javascript controlled SVG works on Rise, because those SVG animations work on all browsers.

For those who want to test with the 2 types of SVG adding them...

Renz Sevilla

Hi Math!

Thanks for patiently waiting! The team investigated and we'd like to let you know this behavior is expected. 

The SVGs using JavaScript are in <object> tags and CSS are in <img> tags.

We wrap all our image uploads in <img > tags and since all of our images are wrapped in <img > tags, CSS based SVGs are the only ones that will work. As for the browser limitation, most browsers limit or prohibit the use of interactivity in tags making animated SVGs work poorly.

Thanks again for initially bringing this up and if we make any updates to this, or how SVGs work in Rise, we'll let you know!

Math Notermans

Hi Jess,

For this sample is used SVGator in which you can animate any svg. And then decide whether to export it as CSS or Js based SVG. With the above mentioned drawbacks when using CSS.
And this is all inline its an option in SVGator on export..

I do use the AfterEffects / BodyMovin / Lottie workflow. Used it in Storyline too before and then indeed you can use separate JSON files and thus even make changes in script on it with Javascript in Storyline. Contact me directly if you need more help.

Kind regards,

Tim St. Clair

The problem is that SVGator exports inline javascript into your SVG and then Articulate go and strip it back out again, presumably because they are fearful of malicious scripts. Scripted SVGs are great for animated graphs and such (better than the build in "charts" which are lackluster at best), but they need javascript to work consistently.

I have to attach the SVG files as previews, publish, then go back into the zip and replace the SVGs with the originals. Not ideal, and not remotely compatible with the Review 360 workflow.