html - Pause an external SVG animation -


you can pause svg using document.getelementbyid("mysvg").pauseanimations(). seems work inline svgs.

is there way pause svg animation included using <img src="my.svg"/>?

so paul lebeau said can't image. can - apparently - using <object>, this:

<object id="mysvg" type="image/svg+xml" data="myfile.svg"/> 

and access through:

mysvg.contentdocument 

that restricted cors policy unfortunately means doesn't work when accessing files via file:// protocol. in case (doxygen) needed gave included svg inline using doxygen this:

\htmlinclude "myfile.svg" 

Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -