jxnblk / loading

This could take a while
http://jxnblk.com/loading
3.52k stars 267 forks source link

Control animation by css #10

Open kof opened 10 years ago

kof commented 10 years ago

its probably better to separate the svg image and the animation and do animation in css, because this way one can adjust or use different animations on different images.

mike-post commented 9 years ago

Now that SMIL animations are deprecated, this should be the way forward.

asppsa commented 8 years ago

Hi there,

I've had a go at this here (here is a copy of the homepage). The main issue that I encountered is that it doesn't seem to be possible to use <img src="loading.svg"> type tags -- this would display the SVG, but ignore the CSS. The workaround seems to be to use <object> instead.