Can not manipulate SVG file via JS script
Hello,
I'm trying to use SVG files directly from Cloudinary.
I have embed it in an <object> element (which I need for animating the svg) using fl_sanitize flag:
<object data="http://res.cloudinary.com/enomi/image/upload/test/example.svg" type="image/svg+xml"></object>
The SVG file is loaded successfully but my JS script for animation could not access to that SVG file via "contentDocument"
1
-
Hi Brahim,
Could you please share a reproducible code snippet or link to JSFiddle/CodePen example where we can see the issue? Currently, it's not quite clear how you are trying to access the object using JavaScript so it's difficult to provide information as to why that may not have worked for you.
If you would like to share this information with us privately then please create a ticket via - https://support.cloudinary.com/hc/en-us/requests/new - with the details and we will be able to have a look.
0
Post is closed for comments.
Comments
1 comment