Problem with SVG Animation
-
I have been developing an SVG animation on a non-WordPress testing website, and it works. I now want to implement it on a testing WordPress site. It is an inline SVG, with most of the work done in JavaScript. I have put the JavaScript into a snippet, and have put the SVG file onto the Media Library.
In your plug-in, I have configured Advanced Mode, Automatically insert Class, and Force Inline SVG, amongst others.
The first line of the SVG file is:-
<svg preserveAspectRatio="xMidYMin slice" class="mn-mot-svg" id="mnmotion" viewBox="-3100,-450 5000,1000" onload="mn_init()" xml:lang="en">When I run the page, and use the browser console, the id field is changed to id=””, and the onload=”mn_init()” has gone. I need both of these entries for my JavaScript. The preserveAspectRatio and viewBox fields are still there.
What am I doing wrong?
The topic ‘Problem with SVG Animation’ is closed to new replies.