Closed rezoan closed 3 years ago
Hey rezoan. Can you please provide the SVG that you're trying to animate? A minimal demo would be extremely helpful.
Side notes:
@ZachSaucier You can find the SVG image at demo page (code is also there and console error can be seen from this page as well) (animation is working here with console error): https://mediaryte.info/dev/adk20/capabilities/ For your reference direct SVG image url : https://mediaryte.info/dev/adk20/wp-content/uploads/2020/10/two-shot1b.svg
Codepen url: https://codepen.io/rezoan-the-typescripter/pen/BazVevW the animation is not showing on codepen UI but code is executing and image is refreshing after 4 second.
Why would you have an SVG inside of an object like that? That doesn't make much sense.
Removing the object and correcting for that in the JS, it works fine.
@ZachSaucier Thanks. This was done to give the client a workable element in the visual page builder in wordpress. I agree it is odd, but without it the SVG cannot be selected easily. It is a QoL thing for the client. I will try to eliminate the object thing and get back to you.
I am trying to animate an SVG image. From below code when its firing
timeline.play();
the animation is working but i am seeing lots of console error saying:Below is the animation code:
Any idea what i am doing wrong here?
Live preview of the page : https://mediaryte.info/dev/adk20/capabilities/