Animate svg in list-style-image

Go To StackoverFlow.com

1

The problem refers to Firefox 4+, extension development

I use svg as

list-style-image: url(svg)

and in some cases i would use animation on svg elements, by i have not DOM object for interacting by javascript.

First reason for using javascript is starting animation on some event. I don't want dynamically generate <animate> and <svg>, it would be nice if i could get DOM tree and after that attach it on target by list-style-image.

How could i do this?

2012-04-05 15:02
by JIoJIaJIu


1

When SVG is being used as an image, not a document, you can't access its DOM from JS.

2012-04-06 01:48
by Boris Zbarsky
Ads