ericwilligers / svg-animation

Implement SVG animation in JavaScript using Web Animations
Apache License 2.0
120 stars 20 forks source link

Is this library dead? #46

Closed RichardJECooke closed 7 years ago

RichardJECooke commented 7 years ago

Hi, your svg-animation library hasn't been touched in a year and there's no readme on how to use it.

Is SMIL dead?

Please would you update the library's readme so all of us out there learning about SMIL and being directed to your polyfill can know what's going on.

Thanks, Richard.

ewilligers commented 7 years ago

I will look over the open issues for this library over the next two months. I'll test with Edge; my SMIL-less fork of Chrome is not current.

The intent with this polyfill is to implement SMIL on top of the new Web Animations API. The hope was that we would eventually be able to polyfill SMIL with native performance (running no per-frame JavaScript), by running on top of native Web Animations.

The original polyfill of the Web Animations API support animation of both CSS properties and SVG attributes. It also included support for motion path and for 'paced' animation. This SMIL libary was built on top of that polyfill, with minor bug fixes.

Since that time, Chrome and Firefox have shipped native support for Web Animations, but only for CSS properties, not SVG attributes. Also, support for pacing hasn't shipped. Motion path has moved out of Web Animations, replaced by CSS Motion Path.

CSS Motion Path has shipped natively in Chrome, and a cross-browser polyfill is now in development. Most of my time has recently been taken up by Motion Path.

Many SVG attributes are now available as presentation attributes (CSS properties).

Thus there currently exists a path to native performance for much of SMIL, but not all of it. If and when there are browsers with native Web Animations support but no SMIL support, this would be worth exploring.